MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Thimble Smith Date:March 20 1999 1:17am
Subject:Re: Perl/Mysql problem
View as plain text  
On Fri, Mar 19, 1999 at 05:23:51PM -0800, Robert H. Clugston wrote:
> Anybody know what this means?
> Not a CODE reference at ./insert line 64, <> chunk 2.

It means you're treating a SCALAR variable as if it's a reference to
a subroutine, but it's not a reference to a subroutine.

> Here is line 64.....
> my $sth = $dbh->($query) or  die "can't post message: $dbh->errstr\n";

$dbh->prepare($query) is probably what you want.

Perl/Mysql problemRobert H. Clugston20 Mar
  • Re: Perl/Mysql problemThimble Smith20 Mar
Re: Perl/Mysql problemPop Qvarnstrom20 Mar