in reply to Getting module to call importer's function
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting module to call importer's function
by chromatic (Archbishop) on Sep 22, 2004 at 23:22 UTC |