Is what you're looking for.sub x { my $package = caller; return unless UNIVERSAL::can($package, "_x"); ... eval "${package}::_x"; die $@ if $@; }
------------ :Wq Not an editor command: Wq
In reply to Re: Getting module to call importer's function
by etcshadow
in thread Getting module to call importer's function
by jredburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |