Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: execute a string as a functionby mtve (Deacon) |
on Oct 09, 2013 at 07:49 UTC ( [id://1057500]=note: print w/replies, xml ) | Need Help?? |
dispatchers are good, but with DRY principle you may use code like this
Yes, it's not so secure if you don't understand what you're doing, and it's around 20% slower then dispatchers which is usually does not matter.
In Section
Seekers of Perl Wisdom
|
|