in reply to Re^2: Problem of scope : $SIG{__WARN__} in a module...
in thread Problem of scope : $SIG{__WARN__} in a module...

Nope, this code will pass only DBH warnings to the set_dberror sub. You do it when when you initialize your DBH handle. Although, I don't think it handles connnection errors.

Ted Young

($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)

Replies are listed 'Best First'.
Re^4: Problem of scope : $SIG{__WARN__} in a module...
by wazoox (Prior) on Dec 03, 2004 at 20:56 UTC

    Ok, I got it now. It's OK for me, it'll do the trick. I just want my script to report neatly all errors when exiting, I don't mind seeing all sort of warnings mixing up with the stdout...

    Thanks all :)