Worked it out. For those that are interested.
$sth = $dbh->prepare("SELECT * FROM $table");
$sth->execute;
$array = $sth->{NAME};
foreach $col (@$array) {
print "$col|";
}
--
John Ferlito
Senior Engineer - Bulletproof Networks
ph: +61 (0) 410 519 382
http://www.bulletproof.net.au/
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug
- [SLUG] Perl, psql and DBI John Ferlito
- John Ferlito
