Don't ask to ask, just ask | |
PerlMonks |
Re^2: Is it possible to use a scalar to call a subroutine?by JavaFan (Canon) |
on May 06, 2010 at 17:32 UTC ( [id://838768]=note: print w/replies, xml ) | Need Help?? |
I don't think I'd like a solution where named subs disappear as anon subs in hashes, using strings to look them up. Yeah, sure, strict is happy, but making strict happy isn't a goal. You've lost some of the benefits strict give you. Using a dispatch table just means you're doing what Perl is doing for you (using stashes) when using symbolic references - with the hash playing the role of a namespace.
I would use:
In Section
Seekers of Perl Wisdom
|
|