Perl programmer for hire: download my resume (PDF).
John Bokma Perl
freelance Perl programmer

List installed DBI drivers

Example script | 1 comment

The following Perl program, which hardly deserves the name program, prints a list of all installed DBI drivers. DBI is he standard database interface module for Perl.

use strict;
use warnings;

use DBI;

print map "$_\n",
      DBI->available_drivers;

Example output of the program:

DBM
ExampleP
File
Proxy
Sponge
mysql

If the driver you require is not installed, use CPAN to find the right DBD (database driver) module.

DBI related links

Please post a comment | read 1 comment by Anonymous | RSS feed