Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Alternative ways to fully qualify subroutine names

by Tanktalus (Canon)
on Feb 04, 2006 at 20:59 UTC ( [id://527993] : note . print w/replies, xml ) Need Help??


in reply to Alternative ways to fully qualify subroutine names

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.