Since you're already using Perl V.5.12, you might be able to use given/when instead?
See feature
and perlsyn: Switch-statements.
In reply to Re: Switch and __DATA__
by Perlbotics
in thread Switch and __DATA__
by atend
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |