Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How to call sub defined in a variable?by revdiablo (Prior) |
on Jan 25, 2009 at 22:46 UTC ( [id://738837]=note: print w/replies, xml ) | Need Help?? |
Another way to do it. Put your code references in a hash, otherwise known as a dispatch table:
This lets you define exactly which routines you can call using this method, rather than opening up everything and anything in the main namespace.
In Section
Seekers of Perl Wisdom
|
|