On Tue, Nov 3, 2009 at 11:40 PM, Shakthi Kannan <[email protected]> wrote: > Need to always check for connection failure: > > my $dbh = DBI->connect( "DBI:CSV:" ) > or die "Couldn't connect to database: " . $dbh->errstr;
Or be lazy and use RaiseError and get DBI to automatically die whenever any method fails. http://search.cpan.org/~timb/DBI-1.14/DBI.pm#RaiseError - Raja _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
