On Tue, 15 Nov 2005, Sastry wrote:
> I have a script that gives error
>
> "Syntax error at /u/isldev3/exp/oper.pl line 7, near ")
> print"
> Execution of /u/isldev3/exp/oper.pl aborted due to compilation errors."
>
> $x =3D 3;
> $y =3D 4;
> $z =3D 3;
>
> if (($x & $y & $z) < 20)
> print "\n Lies below the range";
You could try
print "\n Lies below the range" if (($x & $y & $z) < 20);
otherwise put {} round your print statement
Owen
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>