in reply to Question about DBI and PPM/DB Driver Verify Code
Here are the error messages
Driver: ADO
Use of uninitialized value in method lookup at datasources.pl line 12.
Use of uninitialized value in substitution (s///) at C:/Program Files/Perl/lib/AutoLoader.pm line 41.
Can't locate auto/DBI/.al in @INC (@INC contains: C:/Program Files/Perl/lib C:/Program Files/Perl/site/li
b .) at datasources.pl line 12
Once again here is the code. A bit of a change.
Thanks in advance.#!/usr/bin/perl -w use DBD::ODBC; my @drivers = DBI->available_drivers(); die "No drivers found!\n" unless @drivers; foreach $driver (@drivers) { print "Driver: $driver\n"; @DataSources = DBI->$data_sources( $driver ); foreach $data_sources( @DataSources ) { print "\tdata_source is $data_sources\n"; } print "\n"; } exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Question about DBI and PPM/DB Driver Verify Code
by buckaduck (Chaplain) on Nov 30, 2001 at 00:53 UTC | |
by curtisb (Monk) on Nov 30, 2001 at 01:46 UTC |