Name

available_drivers( )

Synopsis

DBI->available_drivers([nowarn])

This returns a list of available DBD drivers. Any warning messages may be suppressed by providing the text nowarn as an argument.

...
my @drivers = DBI->available_drivers( )
              || die "No drivers found.";
foreach my $driver(@drivers) {
   print "$driver\n";
}
exit;

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.