in reply to SIGDIE problem at eval compile time

$ perl -e 'eval{die @_ if $^S;}' did not die, (albeit v 5.8.8 I used for the test). I think it's enough reason to ask to see the rest of the code.

One world, one people

Replies are listed 'Best First'.
Re^2: SIGDIE problem at eval compile time
by JavaFan (Canon) on Apr 15, 2011 at 11:11 UTC
    Or did it? It's like asking whether a falling tree in a forest makes a sound if noone hears it.

    If you change the code to see whether it actually dies, it does:

    $ perl -e 'eval{die @_ if $^S; 1} or print "$@"' Died at -e line 1.
    Now, since the die is inside an eval, the die doesn't cause the program to terminate.