-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

> I have installed ActiveState 6.0.3 and Strawberry Perl and I am 
> attempting to get started, but hit a wall quickly. The code below 
> fails on the "use Pg;" line. I have located several versions of 

It's a little confusing, but there are multiple Perl drivers for Postgres. 
The most common and established is DBD::Pg, which requires script 
do "use DBI;" and then a connect call with the driver name like so:

my $dbh = DBI->connect('dbi:Pg:dbname=foo', '', '');

The one your script is using is an old precursor to the current one. See:

http://search.cpan.org/~mergl/pgsql_perl5-1.9.0/

Last updated in 2000, so I suspect your script is quite old.

Depending on how complex the script is, I'd just migrate to the new 
version, which means using DBI as described above.

As far as pgadmin and psql, your best bet is to ask on the #postgresql 
channel on IRC freenode, or the pgsql-general mailing list.

- -- 
Greg Sabino Mullane g...@turnstep.com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201101191057
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAk03CpYACgkQvJuQZxSWSsg4/QCfSiPaOhHdE/jv7aa0sYsZA+wG
96oAn1ARp5YY6DPaKWgByk8a8wRPCULJ
=ODio
-----END PGP SIGNATURE-----


Reply via email to