|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: How to call sub defined in a variable?by revdiablo (Prior) |
| on Jan 25, 2009 at 22:46 UTC ( #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
|
|
||||||||||||||||||||