Your format is exactly the way that I've done similar things, except for
putting another double quote after the abc (I assume that was just a typo
anyway). And make sure to use semicolons at the end of your statements
inside the if statement. But otherwise, I think you one way to do it
already.
if ($answer eq "N" or $answer eq "NO") {
&fatal_error("Error message.");
}
-Andrea
-----Original Message-----
From: A Taylor [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 11:57 a
To: [EMAIL PROTECTED]
Subject: help needed with testing variable in an if statement
Hi all,
I am trying to test three variables in an 'if' statement eg:
if ($a eq "abc and $b eq "efg" and $c eq "hi")
{
do some code .....
}
how do i do this in perl ????
Thanks in advance
Anadi
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]