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


in reply to using switch

There are a couple of alternatives to the Switch module, which don't share its weakness of being source-filtered. See Switch::Perlish and (my own) Case.

Caution: Contents may have been coded under pressure.