in reply to Replacing If Elsif Else with Hash
It worked fine in the script as it was, but when I placed that script into a external subroutine, it broke things...
I endorse your desire to use a dispatch table of some kind rather than the original approach, but I am curious to know how things 'broke' when you copied the if ... elsif ... else structure to other code. Can you elaborate?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Replacing If Elsif Else with Hash
by johnfl68 (Scribe) on Nov 24, 2012 at 08:51 UTC | |
by roboticus (Chancellor) on Nov 24, 2012 at 14:05 UTC |
In Section
Seekers of Perl Wisdom