Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 meditating upon the Monastery: (7)
As of 2014-12-25 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls