On Sun, Aug 24, 2003 at 01:53:25AM +0530, Parmod Chander Goyal wrote:
>
> I am new to perl and facing a problem in existing setup.
>
> My perl executable .pl file is not giving any error. I have debugged it and
> found that @dbh=DBI->connect() is not working (these were working for last 1
> year).
It's always helpful to show the code, however going from your example
above, I'd say you're not calling the connect correctly. The basic
connect looks something like this:
use strict;
use warnings;
use DBI;
my $dbh = DBI->connect( "dbi:Oracle:sid", "user_id", "password",
{RaiseError => 1, PrintError => 1} ) or
die "Unable to connect: $DBI:errstr\n";
Note: the database handler is a scalar not an array (use the $ instead
of @).
I removed the dbi-dev group from the list reply, this is more of a
dbi-user question.
Hope this Helps.
Tom
(Note to self, remember to put the URL to DBI FAQ in sig file)