tej:
Then I'd stay away from Switch and just use if/elsif/else. First of all, the Switch module is just rewriting your code to use if/elsif/else anyway, so there wouldn't be any speed boosts.
The problem with Switch is that it mostly works as you want it. But since it's a source filter, it's basically changing your code for you. Generally, Switch will work, and it may work well for you. But if you get a program to the point where it confuses Switch, it can be difficult to determine the problem and fix it. Hence, most people will just skip that module.
...roboticus
In reply to Re^3: Nested Switch case
by roboticus
in thread Nested Switch case
by tej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |