in reply to Re: Switch/case (given/when) in Perl5
in thread Switch/case (given/when) in Perl5

There is of course the Switch-module.
Which I used happily, until one day I needed to run some "use Switch" code through the perl debugger, and learned that the convienience was not worth it.

Since then, I have of course heard the rap about how source filters are dangerous and wasteful, but "impossible to debug" is good enough (I mean, bad enough) for me.

  • Comment on Re^2: Switch/case (given/when) in Perl5