Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Switch Module on Perl 5.8.0

by AnomalousMonk (Archbishop)
on Oct 16, 2011 at 03:11 UTC ( #931727=note: print w/replies, xml ) Need Help??


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 (Bishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://931727]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-12-07 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?