in reply to Simple Switch statement

Plus the comment in the module doc itself "There are undoubtedly serious bugs lurking somewhere in code this funky :-)" gives me pause.

That comment is most likely just in regard to some of the more complicated things it tries to support (like switching on an object ref, and a method name, or matching a hash ref against a regexp)

If you are mainly interested in basic equality matching of values (which is what it looks like from your example) then I think you're relatively safe.

The best way to decide if a module is "bug free" enough for you, is to see what the CPAN Testers had to say, then look aver the test suites used and decide if they cover the usage you are interested in. If so, you're probably okay ... but if you're not sure, then write your own set of tests, and if they fail, then submit them to the author as a bug report.

Speaking of bug reports, there are a few open bugs for Switch which you might want to look at to see what kinds of bugs people have allready found