Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Alternative ways to fully qualify subroutine names

by Tanktalus (Canon)
on Feb 04, 2006 at 20:59 UTC ( #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.


Comment on Re: Alternative ways to fully qualify subroutine names
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://527993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-07-04 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls