Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The $script is a user supplied sql script of usually of the formatmy $sqlpath="$ENV{SYBASE}/$ENV{SYBASE_OCS}/bin/isql"; open(ISQL, "$sqlpath -U$user -S$server -b -i$script -w1024 -P$passw +ord |") or die "Can't run isql $!\n"; close(ISQL); }
The question I have is how do I trap any errors that may come back from the running of the script through the isql call ? Alternatively does anybody know of any module I can use that will execute a user supplied script via DBI/DBD where the error handling would be much easier ?command go command go command go
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: error trapping problem
by mpeppler (Vicar) on Feb 22, 2006 at 19:12 UTC | |
|
Re: error trapping problem
by Anonymous Monk on Feb 22, 2006 at 10:51 UTC |