in reply to Re: Problem of scope : $SIG{__WARN__} in a module...
in thread Problem of scope : $SIG{__WARN__} in a module...
at the beginning of the module and it changes behaviour of all programs using it; I tried too$SIG{__WARN__} = sub { set_dberror(join('',@_))};
at the beginning of the module, but it just has no effect at all (the dbi errors are happily sput out on STDERR).local $SIG{__WARN__} = sub { set_dberror(join('',@_))};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem of scope : $SIG{__WARN__} in a module...
by radiantmatrix (Parson) on Dec 03, 2004 at 20:59 UTC | |
by wazoox (Prior) on Dec 04, 2004 at 13:07 UTC |