in reply to Switch/case (given/when) in Perl5

There is of course the Switch-module.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re^2: Switch/case (given/when) in Perl5
by doom (Deacon) on Mar 24, 2005 at 03:46 UTC
    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.