Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Switch Module on Perl 5.8.0

by AnomalousMonk (Archbishop)
on Oct 16, 2011 at 03:11 UTC ( [id://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 (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

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?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found