That's potentially too smart by half.
sub x { my $package = caller(); my $sub = $package->can( '_x' ); return unless defined $sub; $sub->( @_ ); }
In reply to Re^2: Getting module to call importer's function
by chromatic
in thread Getting module to call importer's function
by jredburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |