casiano has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to know if some identifier is a Perl built-in operator without executing it?
I have tried with UNIVERSAL::can('CORE::GLOBAL', $identifier) but does not work:
Many thanks$ perl -wde 0 main::(-e:1): 0 DB<1> use Memoize DB<2> p UNIVERSAL::can('Memoize', 'memoize') CODE(0x8402a10) DB<3> x UNIVERSAL::can('CORE', 'glob') 0 undef DB<4> x UNIVERSAL::can('CORE::GLOBAL', 'glob') 0 undef
Casiano
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CORE and CORE::GLOBAL operators
by ikegami (Patriarch) on Mar 04, 2008 at 10:56 UTC | |
by casiano (Pilgrim) on Mar 04, 2008 at 11:26 UTC | |
by ikegami (Patriarch) on Mar 04, 2008 at 17:01 UTC |