H
Horst Walter
As a newbie to Perl I run into the following problem. With this I get
the following problem with the code below:
Can't call method "with" without a package or object reference at
autodb.pm line 163
I have tried "use Error qwtry);" and "use Error". I am confused
since this try/catch block works in other parts of my code pretty
fine. It seems to have something to do with DBI.
Any hints would be appreciated.
Thanks!
try {
my ($dbh) = @_;
unless ($dbh->disconnect) {
die("autodb:racleLogoff $DBI::errstr");
};
}
catch Error with {
my $err = shift;
print "autodb:racleLogoff(..) $err";
};
the following problem with the code below:
Can't call method "with" without a package or object reference at
autodb.pm line 163
I have tried "use Error qwtry);" and "use Error". I am confused
since this try/catch block works in other parts of my code pretty
fine. It seems to have something to do with DBI.
Any hints would be appreciated.
Thanks!
try {
my ($dbh) = @_;
unless ($dbh->disconnect) {
die("autodb:racleLogoff $DBI::errstr");
};
}
catch Error with {
my $err = shift;
print "autodb:racleLogoff(..) $err";
};