in reply to eval() issues.
On another note. Make sure you check for errors on all your DBI calls (execute, prepare, connect, fetch...). It is better if you open your DBI database handle to throw errors so they can be caught by an exception handler (eval). You do this in the 4th arg of DBI's connect. Like ...open FH, ">somefile" || die "Could not open somefile : $!";
$dbh = DBI->connect('dbi:DBDnamehere:connectstringhere','userid', ' +password', {RaiseError => 1});
|
|---|