You don't even need AUTOLOAD, just create the subroutine when the other module wants to import it. Exporter is not the ideal tool for that:
sub import { my( @wanted )= @_; my( $target )= caller; for my $name (@wanted) { no strict 'refs'; my $key= substr $name, 3; # is_${key} "$target\::$name" = sub { my( $reg ) = @_; ... }; }; };
In reply to Re: How to export un-exist subroutines
by Corion
in thread How to export un-exist subroutines
by ryo0ka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |