Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://427667]
[ambrus]: Today I accidentally cut my hand while carrying a computer. On the display part of the motherboard that sticks out at the back of the chasis and has ports, there's this thin metal sheet with holes cut for the ports, to guide plugs into the sockets.
[ambrus]: This sheet has sharp needle-like parts, 0.004 long and less than 0.001 wide, that can get bent to point outwards, and one of these cut into my palm when I lifted the box.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-01-16 19:32 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.