Don't use Switch. It creates problems, and they're impossible to debug.
If you have 5.10, use given/when. See perlsyn
In reply to Re: Syntax error with use constant and switch with comment between
by ikegami
in thread Syntax error with use constant and switch with comment between
by ascetic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |