On Sun, Aug 24, 2003 at 09:34:57PM +0530, Parmod Chander Goyal wrote:
> 
> My perl script looks like 
> 
>       use DBI;
>       my $dbh = DBI->connect('dbi:Oracle:prod', 'user', 'password');
> 
> DBI is not returining any value here, I have also tried to use RaiseError
> but to no use.

Add this after the connect:
die "Connection failed: $DBI::errstr\n" unless (defined $dbh);



> Should I reinstall tPerl along with these modules if yes then where can I
> find installation procedure for Win NT>

No, error check instead.

Reply via email to