in reply to Re: Switch Module on Perl 5.8.0
in thread Switch Module on Perl 5.8.0

See also "Basic BLOCKs and Switch Statements" in 5.8  perldoc perlsyn for a discussion of other switch-ish alternatives.

Replies are listed 'Best First'.
Re^3: Switch Module on Perl 5.8.0
by eyepopslikeamosquito (Archbishop) on Oct 16, 2011 at 07:33 UTC

    See also Perl Best Practices Chapter 6 (Control Structures) especially:

    • 6.16 Value Switches - Use table look-up in preference to cascaded equality tests
    • 6.17 Tabular Ternaries - When producing a value, use tabular ternaries