Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: calling subroutines from variablesby GrandFather (Saint) |
on Aug 21, 2008 at 20:47 UTC ( [id://705983]=note: print w/replies, xml ) | Need Help?? |
Update: Doh! Didn't read through the thread far enough to see Tanktalus had already given a better version of the same trick (twice). Really light weight OO stuff can ease the path:
Prints:
and all you need to do to add a new sub is add the sub. Perl reduces RSI - it saves typing
In Section
Seekers of Perl Wisdom
|
|