CC: | btilly [...] gmail.com |
Subject: | Does not handle DESTROY |
A simple script like this blows the stack:
use Class::AutoloadCAN;
$SIG{__DIE__} = sub { $x = bless []; undef $x};
die
The problem is that the AUTOLOAD that gets installed in main dies when called with DESTROY as its argument. Because I bless and destroy an object in a __DIE__ handler, it tries to do it again and again....