From: Karan Bhalla <karan_bhalla@hotmail.com>
To: bweaver@tranquility.net
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Quick perl question
Date: Mon, 06 Mar 2000 11:37:47 GMT
Message-ID: <20000306113747.81615.qmail@hotmail.com> (raw)
Hi there,
I agree that you should be using DBI...
That would help you use the same perl scripts for connecting to any other
SQL compliant RDBMS with only the change of the DBD , table , user names.
Also you would'nt have to remember how to connect to different databases.
As far as your immediate problem is concerned.... I think you will be
getting a list of paths in @INC ... you should place your PG.pm file
in that list of paths..and all will end well..
CHEERS!!
>From: bweaver@tranquility.net
>To: pgsql-interfaces@postgreSQL.org
>Subject: [INTERFACES] Quick perl question
>Date: Thu, 2 Mar 2000 23:25:07 -0600
>
>Hey all,
>
>I probably totally missed the docs on it, but I put PostgreSQL on
>my FreeBSD 3.4 box and I wanted to use some CGI scripts written
>in perl. I installed Postgre 6.5.3 using the commands 'make
>USE_PERL=yes' and then 'make install'. The installation is fine,
>but when I tried to make perl scripts using the Pg.pm library, I keep
>getting a "Can't locate Pg.pm in @INC..."
>
>I'm using perl5. Did I do something in the installation incorrectly?
>
>An example script would be:
>
>#!/usr/bin/perl5 -w
>
>use Pg;
>
># then the rest of the script goes here.
>
>Thanks in advance,
>
>-Ben
>
>************
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: karan_bhalla@hotmail.com, bweaver@tranquility.net
Subject: Re: [INTERFACES] Quick perl question
In-Reply-To: <20000306113747.81615.qmail@hotmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox