Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: idiom for

by damian1301 (Curate)
on May 18, 2001 at 06:27 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found