Perl 列出所有 DBI 数据源 2015/12/14 17601 #!/usr/bin/perl use strict; use DBI; my @drivers; @drivers = DBI->available_drivers; foreach my $driver (@drivers) { print "$driver driver is available\n"; my @dsns = DBI->data_sources($driver); foreach my $dsn (@dsns) { print "\tDSN: $dsn\n"; } }