my $sub = $pkg->can('foo'); $sub->('param'); # or simply ... $pkg->can('foo')->('param');
Is this a good idea? Probably not. I'd have to wonder why you want to do this first.
In reply to Re: Alternative ways to fully qualify subroutine names
by Tanktalus
in thread Alternative ways to fully qualify subroutine names
by bobf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |