->can does a sub lookup if @ISA is empty, and the content of @ISA is introspectable too.
And using a package for a module and a class is a pretty dubious concept.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^3: Function name in a variable, can't recall the concept (introspection with ->can )
by LanX
in thread Function name in a variable, can't recall the concept
by mpersico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |