in reply to DBI dots

Like chromatic illustrated,
Prepare returns you a statement handle from your database handle, so it should be:
my $sth = $dbh->prepare; $sth->execute;

not just sth->prepare, sth->execute which will never work.

Replies are listed 'Best First'.
RE: Re: DBI dots
by Merlin83 (Novice) on Oct 23, 2000 at 20:36 UTC
    Yeah, that was a mistake on my part when making this little example. It's correct in the real script. Like I said, I'm comfortable with DBI.

    So I actually concocted a little example to run, and it works. However, the original still isn't working, I'm trying to work out why not now.