you can use "and" or "&&".
if (($a==$b) && ($d==$e)) {
# code here
}
and has a lower precedence than &&.
For or there's "or" or "||"
HTH
Nigel
MIS Web Design
http://www.miswebdesign.com/
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2003 13:55
> To: [EMAIL PROTECTED]
> Subject: What is the and operator in perl
>
>
> If I want to do something like
>
> if ($a=$b) and ($d=$e)
> Is it possible?
>
> because & is for bitwise AND operation.
>
> Thanks
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]