This is true. I naively tried to use Switch once upon a time, because I like that construct, in some software that I was writing and it seriously broke my code. I had obscure error messages that were nearly impossible to debug until I realized that Switch was the culprit.
I agree. Don't use Switch unless you want to court devious Perl bugs.
metadoktor
"The doktor is in."
In reply to Not Use Switch - Re: Re^6: No braces
by metadoktor
in thread No braces
by jacques
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |