Listing Currently Installed Drivers : DBI « Database « Perl






Listing Currently Installed Drivers

   


#!/usr/bin/perl

use strict;
use DBI;

my @drivers;
@drivers = DBI->available_drivers();

foreach my $dbd (@drivers) {
  print "$dbd driver is available\n";
}

exit;

   
    
    
  








Related examples in the same category

1.Listing Valid DSNs
2.Talking with the Database
3.The connect() Method
4.Use DBI to connect to a database
5.Connect to Oracle
6.Connect to mysql
7.Binding Columns
8.Available DBI Drivers and Data Sources