in reply to Help !! I need to feed all errors to a subroutine
If you want to catch calls to die, then borisz has the answer for you, but if you want to capture warnings, you can use $SIG{'__WARN__'}. This allows you to install an arbitrary warning handler subroutine. You can read the details in perldoc -f warn.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: need to feed all errors to a subroutine
by boat73 (Scribe) on Jun 30, 2004 at 13:20 UTC |