go ahead... be a heretic | |
PerlMonks |
Re: Naming Subsby Zaxo (Archbishop) |
on Jan 12, 2003 at 00:21 UTC ( [id://226168]=note: print w/replies, xml ) | Need Help?? |
A dispatch table is a neat way to do that. It is a hash, keyed by your input string, with code references as values.
After Compline,
In Section
Seekers of Perl Wisdom
|
|