Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Implementing the counterpart of BEGIN

by Crian (Chaplain)
on Feb 03, 2005 at 15:20 UTC ( #427667=note: print w/replies, xml ) Need Help??


in reply to Implementing the counterpart of BEGIN

You are looking for perldoc sigtrap I suppose.

  • Comment on Re: Implementing the counterpart of BEGIN

Replies are listed 'Best First'.
Re^2: Implementing the counterpart of BEGIN
by punkish (Priest) on Feb 03, 2005 at 15:41 UTC
    use sigtrap 'handler', \&my_handler, 'normal-signals'; sub my_handler { open(STDERR, ">>test.err") or die "invisible error"; warn "die-ing at " . localtime() . " because of: $!\n"; }

    does the job. Many thanks for your quick help.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://427667]
help
Chatterbox?
erix is reduced to use a BROWSER. (remember those?)
[Discipulus]: figuring.. i'm still just use the side pm chat..
[erix]: (all this while karls guitar gently weeps...)
[planetscape]: (invade Hungary)++ #I'm hungry
[stonecolddevin]: i went too far down the irc rabbithole to hook this back up there
[Discipulus]: .. yes erix until NodeReaper put jhon coltrane again

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-06-22 21:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (531 votes). Check out past polls.