Posted on 2009-07-07 01:25:33-07 by tonyc in response to 11133
Re: perl.pm - DBD::mysql issue?

You typically use DBD::mysql through DBI, eg.

use DBI; my $dbh = DBI->connect('dbi:mysql:mydatabase', $user, $password) or die $DBI::errstr; # do stuff with the database...

If you want to use the module directly, use the full name:

use DBD::mysql;

Though I can't think why you'd want to. See perldoc DBD::mysql for typical usage.

Direct Responses: 11137 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.