Thread: Re: [NOVICE] Help needed with pg.pm to connect to postgresql

Re: [NOVICE] Help needed with pg.pm to connect to postgresql

From
Jesus Aneiros
Date:
You have 2 small mistake that I point below.

On Sat, 4 Nov 2000, Kisala Muhavi wrote:

> #!/usr/local/bin/perl
> #
> #perl sample program
>
> use pg;
use Pg;
>
> $conn =pg::connectdb("dbname=test");
> die $conn->errorMessage unless PGRES_CONNECTION_OK eq $conn->status;
>
> print "Enter User name :"
print "Enter User name:";

The rest compiles OK

--
Jesus Aneiros Sosa
mailto:aneiros@jagua.cfg.sld.cu
http://jagua.cfg.sld.cu/~aneiros