If everything worked find (i.e. no error messages, etc.) and if failed only because of the addition of the if/else block, then I think I'd suspect one or more of your braces was a line too high or too low, causing the code to be bypassed or some such. Pure speculation, though.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re^3: Replacing If Elsif Else with Hash
by roboticus
in thread Replacing If Elsif Else with Hash
by johnfl68
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |