http://www.perlmonks.org?node_id=328337


in reply to Re^6: No braces
in thread No braces

"Damian's Switch.pm relies on source filtering, which means that unless it can parse Perl perfectly (ha ha!), you'll get bugs in portions of code that having nothing to do with switches just because you included use Switch; in your code. So it shouldn't be used in any practical code."

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."