Adam has asked for the wisdom of the Perl Monks concerning the following question:
As you can see, die seems to get called twice, but then Perl determines that it is in an endless loop and stops. This is desirable behaviour, but I was a little surprised that it works... so I figured I would ask around to find out if this is a 'feature' and not just a fluke.perl -we "sub fail {die 'test' }; END{ fail }; fail()" test at -e line 1. test at -e line 1. END failed--call queue aborted.
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: END failed--call queue aborted
by Adam (Vicar) on Oct 20, 2000 at 20:26 UTC | |
by little (Curate) on Jun 27, 2002 at 06:12 UTC | |
Re: END failed--call queue aborted
by chromatic (Archbishop) on Oct 20, 2000 at 20:23 UTC |