complex condition

From: Steve Gilbert (stevecgilbert_at_yahoo.com)
Date: 10/30/03


Date: Thu, 30 Oct 2003 09:08:26 -0800 (PST)
To: beginners@perl.org

I know there must be a way to do the following:

if (($foobar > 3) || ($foo="t" && $bar = "b")) {print
"yup"}

Of course this is wrong, but what I want is to print
yup if $foobar >3 or $foo=t and $bar=b.

so:
$foobar=4 $foo=a $bar=b is true
$foobar=1 $foo=f $bar=b is true
$foobar=1 $foo=f $bar=a is false

Thanks in advance!

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/