Gary Stainburn wrote:
> Hi folks I've got the following code which generates 
> 
> Parse error: parse error in /home/httpd/html/consumables.html on line 
> 290

That message did not come from perl.

perldoc perldiag


> 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

Again, that message did not come from perl.


> which for some reason it displays twice.
> 
> Anyone got any ideas?

Try to determine what program is generating those messages.


John
-- 
use Perl;
program
fulfillment

-- 
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