-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Mar 05, 2002 at 08:10:20PM -0800, tom poe wrote: > 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
There is nothing here to clear up -- the program is doing exactly what you told it to (namely, "print $sth"). Since you seem to be expecting this action to magically produce data from your database, you may wish to consider reading more of the documentation before continuing -- e.g., the parts about "execute" and "fetch". - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjyFqqYACgkQA4aoazQ9p2eU2wCfTJGFtvgqXILDNXY87p4N72sW v/IAoN0SDw0vyiY++je//vbZTYk37aiK =RgHy -----END PGP SIGNATURE-----