On Fri, 24 Oct 2003 10:50:55 +0530 Anil Menon <[EMAIL PROTECTED]> wrote:

> I dont know if this is the right answer but why dont u do and eval on
> critical line code ?
> like

This only works if you include the following line first or set
RaiseError in connect().  In either case, some sort of error checking
is essential.

$dbh -> {RaiseError} = 1;

> eval{$sth = $dbh->exeute(); };
> if($@){
>     print "This is an Error :". $dbh->errstr;
>     exit;
> }else {
>     print "Execute is successful \n";
> }

-- 
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Reply via email to