in reply to Problem with second MySQL Query

Shouldn't
$sth->bind(undef,/$num);
be:-
$sth->bind(undef,\$num);

Would really help if you pointed out which lines are 57, 59 and 63.

Like the error says it could be an unmatched " from further up than you've given us.

Lyle

Replies are listed 'Best First'.
Re^2: Problem with second MySQL Query
by greymoose (Beadle) on Oct 08, 2007 at 02:42 UTC
    Yes /$num should be \$num - so I changed it.
    That solved the problem.
    I've only just managed to get my hands on a copy of the Camel and I'm trying to improve my understanding of Perl by reading/applying it. Could using '/' instead of '\' have been interpreted as a '"'?
    By the way, point taken about identifying the lines in question.
    Thanks for your help.