Re: MySQL with perl error

2001-07-04 Thread Michael Ott
hallo! With reference to Dawn H on 04.07 00:36: > The error log says, > > Can't call method "do: on an undefined value. . . > > But the EXACT SAME code works on another script I'm running. I don't see any > reason for it to suddenly have a problem. What does this error message MEAN? > > Co

RE: MySQL with perl error

2001-07-04 Thread Sherzod Ruzmetov
The only reason why that might happen (assuming it is working somewhere else), the object isn't return. So connect() constructor couldn't return the object. To read the error message from DBI, you'll have to read $DBI::errstr: my $dbh = DBI->connect(dsn, login, password) or die $DBI::errstr;

RE: MySQL with perl error

2001-07-03 Thread Dawn H
The error log says, Can't call method "do: on an undefined value. . . But the EXACT SAME code works on another script I'm running. I don't see any reason for it to suddenly have a problem. What does this error message MEAN? Code Snippet-- # Form was okay; get image type and cont