princepawn has asked for the wisdom of the Perl Monks concerning the following question:

Ok, I appreciate merlyn's help on why my END blocks are giving me those diagnostics.

I would like to know all the possible manners in which my code may be raising an untrapped exception so that I can track them down.

  • Comment on besides die() how might I have raised an untrapped exception

Replies are listed 'Best First'.
Re: besides die() how might I have raised an untrapped exception
by tye (Sage) on Aug 23, 2000 at 21:03 UTC
    END { eval { # your END code here 1 } or warn "tried to die in END: $@"; }

    See if that helps.

            - tye (but my friends call me "Tye")
Re: besides die() how might I have raised an untrapped exception
by athomason (Curate) on Aug 23, 2000 at 20:58 UTC
    Well, there's always the tried-and-true method of removing or commenting out all the code that could possibly offend perl. Keep going until your END block works again (i.e. a test print at the very end works). Then just your code back in bit by bit until the block fails again, and you'll know what the problem is.

    Or, put in a bunch of print statements around your code to see how far your program gets before its dies.

    Kludgey advice, but you're not giving us much else to work with.