note
robin
<p>I don't think this really has to do with <tt>die</tt> specifically. For example,
<code>
perl -e 'undef %::; sub{}->()'
</code>
crashes too. Lots of thing crash when you've totalled the defstash! But perhaps that just indicates a pervasive assumption, which really needs to be fixed in lots of different places.</p>
<p>See also [http://guest:guest@rt.perl.org:80/rt3/Ticket/Display.html?id=32401|bug 32401].</p>
<p>PS. Getting a bit more targeted:
<code>
perl -e 'delete $::{"@"}; warn' ;# crashes
perl -e 'delete $::{"@"}; sub{}->()' ;# doesn't crash
perl -e 'delete $::{"_"}; warn' ;# doesn't crash
perl -e 'delete $::{"_"}; sub{}->()' ;# crashes
</code></p>
<p>I suppose that wiping out important global variables oughtn't to be allowed, really.</p>
<p>PPS. [http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-11/msg00148.html|Let's see what the p5p hive mind thinks].
505817
506019