Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: in search of a more elegant if then else

by rir (Vicar)
on Feb 22, 2010 at 13:24 UTC ( #824628=note: print w/ replies, xml ) Need Help??


in reply to in search of a more elegant if then else

There is also shellish short circuiting. (I can't say that fast.)

$var = "condition_false"; $condition and $var = "condition_true;
Be well,
rir


Comment on Re: in search of a more elegant if then else
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-07-12 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls