connect from perl: error in Carp.pm

From: "Marc Mamin" <m(dot)mamin(at)gmx(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: connect from perl: error in Carp.pm
Date: 2005-04-28 14:53:47
Message-ID: 1912.1114700027@www10.gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

When I try to connect as following, I get an error in Carp.pm:

use DBI;

# connecting to database

my $username = 'marc';
my $password = 'marc';

$dbh = DBI->connect("DBI:Pg:dbname=my_db", $username, $password,{AutoCommit
=> 1, RaiseError => }) || die "Unable to connect to database $DBI::errstr";

=> Not a CODE reference at /usr/lib/perl5/5.8.3/Carp.pm line 178.

Any idea what this error means?

Maybe there are some right issue; I installed DBI and DBD as root, I'm
calling the script as root, but postgres runs under its own user.

cpan> install DBI
cpan> install DBD::pg

Thanks,

Marc

--
+++ Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bob 2005-04-28 14:55:24 Re: temp tables
Previous Message Schuhmacher, Bret 2005-04-28 14:01:42 Re: temp tables