From: David L. Nicol [mailto:[EMAIL PROTECTED]]
> 
> Is there a way to determine if a word is defined as a command?  (A few
> methods come to mind, including getting a list from the documentation
> and making a hash of it)

foreach my $func (qw(grep map die printf sprintf foo bar baz)) {
  eval { prototype "CORE::$func" };
  $@ and print "$func not a builtin\n";
}

Garrett

Reply via email to