Hi Anadi,
Hope this helps:
#!/tools/bin/perl -w
print "enter a number\n";
$a = <STDIN>;
if ($a == 12 or $a== 8) {print "right\n";}
else {print "incorrect\n";}
#end of script
-vicky
--- A Taylor <[EMAIL PROTECTED]> wrote:
> 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]
>
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]