And while you know the difference, it is worth pointing out that perl 5.10.0 introduced a given/when which is mostly analogous to a switch statement. This is considered safe and a good practice (perlsyn).
Cheers - L~R
In reply to Re^2: Climbing Mt. Perlcritic -- Switch statements
by Limbic~Region
in thread Climbing Mt. Perlcritic -- Switch statements
by chexmix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |