Re: help with syntax error

2003-10-29 Thread drieux
On Wednesday, Oct 29, 2003, at 08:28 US/Pacific, Rick Triplett wrote: #!/usr/bin/perl -w print "Enter the radius: \n"; chomp ($radius = ); $area = $radius*$radius*3.14 --^ normally that would need to have a ";" to close it out. if ( $radius <= 0 ) { print "Th

RE: help with syntax error

2003-10-29 Thread Hughes, Andrew
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

help with syntax error

2003-10-29 Thread Rick Triplett
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 = ); $area = $radius*$radius*3.14 if ( $radius <= 0 ) { pr