in reply to Re^2: Perl Programmers Don't Die...
in thread Perl Programmers Don't Die...

Well ... what if some module die()s? I think you should have a look at CGI::Carp instead or just enclose the script in one big eval{}

Replies are listed 'Best First'.
Re^4: Perl Programmers Don't Die...
by twotone (Beadle) on Jan 04, 2008 at 09:37 UTC
    I suppose that I should clarify that this isn't for when my scripts die of natural causes, but when I kill them myself, i.e.:
    open ... or &dienice("Can't open: $!");
    Or for viewing troubleshooting data:
    &dienice(@troubleshooting_data);
    Perhaps I should rename the sub killnice, or maybe KillingMeSoftly?

    *Music plays in the background*

    Strumming my pain with his routine
    Singing my life with his code
    Killing me softly with his sub...