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?
In reply to Re: Replacing If Elsif Else with Hash
by AnomalousMonk
in thread Replacing If Elsif Else with Hash
by johnfl68
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |