http://www.perlmonks.org?node_id=81417


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