Hi: I can connect to PostgreSQL, which is good. Now, how do I clear this up?
tompoe@aether:~/perlStuff > dbistart
DBI::st=HASH(0x81e31bc)
tompoe@aether:~/perlStuff >
Not sure what the topic is to look up this output. The code is:
#! /usr/bin/perl5.6.0 -w
# Programming the Perl DBI
# ch05/prepare/ex1: Simply creates a database handle and a statement
#handle
use strict;
use DBI;
### The database handle
my $dbh = DBI->connect('dbi:Pg:dbname=tomdb');
### The statement handle
my $sth = $dbh->prepare( "SELECT name FROM friend" );
print "$sth\n";
$dbh->disconnect();
exit;
Any help appreciated. Thanks, Tom