No, it doesn't work even after connecting the db. DBI: 1.614 DBD::Pg: 2.17 installed locally in user's path via CPANP.
Postgresql: 8.4.4 On Mon, Sep 20, 2010 at 6:15 PM, Greg Sabino Mullane <g...@turnstep.com>wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > > > > However, this piece of code gives nothing: > > my @dbs=DBI->data_sources("Pg)"; > > Works fine for me (once the quoting problem is fixed). What > version of DBI and DBD::Pg do you have? > > Does it work if you connect to a Postgres database first, > and then issue: > > my @dbs = $dbh->data_sources(); > > - -- > Greg Sabino Mullane g...@turnstep.com > End Point Corporation http://www.endpoint.com/ > PGP Key: 0x14964AC8 201009201214 > http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 > -----BEGIN PGP SIGNATURE----- > > iEYEAREDAAYFAkyXiHEACgkQvJuQZxSWSsjliQCgtp/aD3+CnF337rkMhoVvTQzy > 6rIAn2OMLDQCYvUPcdX/mw7VDDjKNJwo > =UK+k > -----END PGP SIGNATURE----- > > >