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 {
Garrett Goebel wrote:
eval { prototype "CORE::$func" };
Strangely, prototype() "works" in 5.004_04, but does not throw
the exception for non-existent functions.
--
John Porter
Anyone remember when I posted the top level of a language
prototyping environment? Well, that system has now grown a
lexical parser that can understand arbitararily deep doublequotes,
and I'm working on a perl5 into perl5 capability for it.
Is there a way to determine if a word is defined