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.
Hi Anadi,
Hope this helps:
#!/tools/bin/perl -w
print "enter a number\n";
$a = ;
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:
>