RE: How to tell (in perl5) if friz is a core command or not?

2000-10-30 Thread Garrett Goebel
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 {

Re: How to tell (in perl5) if friz is a core command or not?

2000-10-30 Thread John Porter
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

How to tell (in perl5) if friz is a core command or not?

2000-10-26 Thread David L. Nicol
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