If it screws up the parsing, you now have to change code (which may be completely unrelated to the code that actually uses a switch statement) just to work around bugs in Switch.pm.You sound as if that's a common case. How often do you write code that contains something that looks like a 'switch', but isn't?
That's a lot more work for something that is little more than syntax sugar and is easily replaced with a multitude of common Perl idioms.The same could be said about IO::Socket or CGI. Or about almost any module out there. And any module may contain bugs you will have to code around. There hasn't been a perl released that doesn't contain bugs someone has to code around.
Abigail
In reply to Re: No braces
by Abigail-II
in thread No braces
by jacques
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |