/usr/share/doc/libdbd-odbc-perl/examples/testgetinfo.pl is in libdbd-odbc-perl 1.52-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/usr/bin/perl
use DBI;
# $Id$
use DBI::Const;
$\ = "\n";
$, = ": ";
my $dbh = DBI->connect or die $DBI::errstr;
$dbh->{ RaiseError } = 1;
$dbh->{ PrintError } = 1;
for ( @ARGV ? @ARGV : sort keys %DBI::Const::GetInfo )
{
my $Val = $dbh->get_info( $DBI::Const::GetInfo{$_} );
printf " %-35s%s\n", $_, $Val if defined $Val;
}
|