in reply to Method "do" error

Can't call method "do" on an undefined value
This means exactly what it says, unfortunately.

$dbh->do ("INSERT INTO contact_info...
$dbh is undefined at that point

If you add some error checking here I think you'll find your problem
my $dbh = WebDB::connect ();

grep
Mynd you, mønk bites Kan be pretti nasti...

Replies are listed 'Best First'.
Re: Re: Method "do" error
by b310 (Scribe) on Apr 20, 2003 at 20:38 UTC
    Hi.

    The line my $dbh = WebDB::connect (); is not the problem. This is a module that allows me to connect to my database. I verified that the module is indeed connecting to the database. It is.

    Any other ideas?