in reply to How to give a database as an input in a perl script?
Something like:
use strict; use warnings; use DBI; my $dbh = DBI->connect(...); my $tables = $dbh->selectall_arrayref('show tables'); print "$_->[0]\n" for @$tables;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to give a database as an input in a perl script?
by Corion (Patriarch) on May 31, 2012 at 07:41 UTC | |
|
Re^2: How to give a database as an input in a perl script?
by dsheroh (Monsignor) on May 31, 2012 at 09:38 UTC | |
|
Re^2: How to give a database as an input in a perl script?
by amature (Initiate) on May 31, 2012 at 17:19 UTC |