Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 chanting in the Monastery: (12)
As of 2015-07-07 13:28 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 (88 votes), past polls