>>>>> "MR" == Mark Russell <russellm@stripped> writes:
MR> $dbh = DBI->connect($datasource, $user, $pwd);
MR> $errstr = $dbh->errstr();
If $dbh is undef, you are dereferencing a null pointer, effectively.
The only right way to do this is:
$dbh = DBI->connect($datasource,$user,$pwd) or &Error($DBI::errstr);
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@stripped Rockville, MD +1-301-545-6996
PGP & MIME spoken here http://www.kciLink.com/home/khera/