Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: END blocks in perl

by toolic (Bishop)
on Oct 16, 2007 at 14:48 UTC ( #645192=note: print w/replies, xml ) Need Help??


in reply to END blocks in perl

I happened to stumble upon this http://www.perl.com/cookbook/perlckbk2/solution.csp?day=1 (Perl Cookbook, section: 16.22. Turning Signals into Fatal Errors)

It discusses the sigtrap pragma.

Replies are listed 'Best First'.
Re^2: END blocks in perl
by clueless newbie (Chaplain) on Oct 16, 2007 at 15:18 UTC
    Can this be used to catch the seg faults and some of the whatevers that Sid has mentioned?
      You don't want a program that segfaults to continue. It tries to mess up the memory of your computer, and you should be glad it is not allowed to do so. A program which crosses its borders in that way should be examined and debugged immediately; it's not that kind of errors you can lightly sweep under the rug.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://645192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-11-14 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (177 votes). Check out past polls.

    Notices?