in reply to Re^4: help figuring out what a section of script does
in thread help figuring out what a section of script does
I don't know why you have duplicates, try this
#!/usr/bin/perl use strict; use DBI; my $dbfile = 'MapTiles.sqlitedb'; my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile","",""); my $sth = $dbh->table_info('%', '%', '%'); while (my $r = $sth->fetchrow_hashref()) { print join " ",$_,$r->{$_},"\n" for keys %$r; print "\n"; }
Which Operating System are you using ?
poj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: help figuring out what a section of script does
by michaelsingleton (Novice) on Mar 24, 2017 at 22:14 UTC | |
|
Re^6: help figuring out what a section of script does
by michaelsingleton (Novice) on Mar 24, 2017 at 22:21 UTC | |
by poj (Abbot) on Mar 25, 2017 at 19:31 UTC | |
by michaelsingleton (Novice) on Mar 26, 2017 at 12:42 UTC |