I believe that you need a semicolon after $area = $radius*$radius*3.14 Try that.
Andrew -----Original Message----- From: Rick Triplett [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 11:29 AM To: [EMAIL PROTECTED] Subject: help with syntax error Can someone please help me find the syntax error in the following practice exercise. The perl compiler says: syntax error at line 7 near ") {" but I cannot see it! #!/usr/bin/perl -w print "Enter the radius: \n"; chomp ($radius = <STDIN>); $area = $radius*$radius*3.14 if ( $radius <= 0 ) { print "The area is zero\n"; } else { print "The area is $area\n"; } -- 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]