Hi folks I've got the following code which generates 

Parse error: parse error in /home/httpd/html/consumables.html on line 
290

when I try to run it. The script doesn't run because of the parse error

    $orderSQL=~s/TOTAL/$or_total/;

$orderSQL is a string containing a number of SQL statements with the 
placeholder &total; and $or_total has a value of '695.76'

I've done this many times in the past without a problem.  If I add a 
modifier, such as 

    $orderSQL=~s/TOTAL/$or_total/g;

the script runs, but the error changes to a runtime error:

Warning: Division by zero in /home/httpd/html/consumables.html on line 
290

which for some reason it displays twice.

Anyone got any ideas?


-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to