![]() |
|
Just another Perl shrine | |
PerlMonks |
Re^3: Catching DBI (or other) errorsby Crackers2 (Parson) |
on Mar 08, 2006 at 18:20 UTC ( #535222=note: print w/replies, xml ) | Need Help?? |
That would execute all queries even if one of them failed though. And if after your code finishes, $sql_stage is 1, you still don't know whether it was $query or $query2 that failed. Now add 3 or 4 more queries to that list and the $sql_stage variable becomes practically useless for anything except comparing to the total number of queries.
In Section
Seekers of Perl Wisdom
|
|