Adam has asked for the wisdom of the Perl Monks concerning the following question:
#!perl -w use strict; $SIG{__DIE__} = sub { print "SIG DIE called!\n", caller, $/ }; eval qq{die 'inside eval!'}; print uc($@); __END__ The above code, when run, outputs: SIG DIE called! main(eval 1)1 INSIDE EVAL! AT (EVAL 1) LINE 1.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: And yet more $SIG{__DIE__} fun...
by Fastolfe (Vicar) on Nov 01, 2000 at 02:42 UTC | |
by Adam (Vicar) on Nov 01, 2000 at 02:52 UTC |