in reply to Death can be such a Tragedy
Update: A quick check reveals that %SIG doesn't lead you anywhere useful, so I will give you a quick overview here: the keys to the SIG hash are the signals, like __DIE__ and __WARN__, and the values are references to handlers. So, for example, if you wanted to print the time that something died you would say:
I still recommend reading the docs on this useful tool, but that should get you started.%SIG{__DIE__}=sub {print STDERR localtime, "\n", @_ };
Update (2): Thanks chromatic for finding the docs for %SIG. They are part of perlipc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RE: Death can be such a Tragedy
by yodabjorn (Monk) on Apr 03, 2003 at 01:29 UTC |