Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: idiom for

by damian1301 (Curate)
on May 18, 2001 at 06:27 UTC ( #81417=note: print w/ replies, xml ) Need Help??


in reply to idiom for ( 1 < $foo < 10) ?

or if you want to do something if that results to true, you can do this:

(1 < $foo && $foo < 10) ? do_stuff($foo) : die("nooo!");
UPDATE:Spaced it out for clarity...and because I am/was bored.

Tiptoeing up to a Perl hacker.
Dave AKA damian


Comment on Re: idiom for
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-10-23 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (129 votes), past polls