Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Replacing If Elsif Else with Hash

by moritz (Cardinal)
on Nov 24, 2012 at 08:59 UTC ( #1005346=note: print w/ replies, xml ) Need Help??


in reply to Re: Replacing If Elsif Else with Hash
in thread Replacing If Elsif Else with Hash

It is worth noting that the // operator is new perl 5.10.0, so if yo uuse it, you should start your code with

use 5.010;

Then if somebody accidentally runs the code with an older version of perl, you get a much better error message.


Comment on Re^2: Replacing If Elsif Else with Hash
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2015-07-06 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls