On Nov 4, 2005, at 13:03, 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

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'

    % perl -wle '$or_total="695.76"; \
                 $orderSQL="TOTAL"; \
                 $orderSQL=~s/TOTAL/$or_total/; \
                 print $orderSQL'
    695.76

The error is somewhere else.

-- fxn


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