Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: calling subroutines from variables

by gone2015 (Deacon)
on Aug 21, 2008 at 18:01 UTC ( [id://705909]=note: print w/replies, xml ) Need Help??


in reply to Re^2: calling subroutines from variables
in thread calling subroutines from variables

Of course, if you have a lot of subroutines, you may still want symbolic refs to help construct the hash:

my %dispatch = map { ; no strict 'refs' ; ($_, \&$_) } qw(sub1 sub2 +sub3 ...) ;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found