Think about Loose Coupling | |
PerlMonks |
Re^3: Avoiding if/else knotsby planetscape (Chancellor) |
on Feb 19, 2012 at 15:44 UTC ( [id://954877]=note: print w/replies, xml ) | Need Help?? |
Please see Re: Using Number Ranges in a Dispatch Table for a subtle flaw that causes both the above code and ikegami's variant to fail when the dispatch table is passed 1000. Please do NOT upvote this node, save your votes for afoken's excellent answer instead. I'm just cross-referencing for those who stumble across this in the future. :-) HTH, planetscape
In Section
Seekers of Perl Wisdom
|
|