vsespb has asked for the wisdom of the Perl Monks concerning the following question:

subj.
$ perlbrew exec --with perl-5.16.1 perl -w -e 'package XX; sub AUTOLOA +D { die }; package main; bless {}, "XX"; ' perl-5.16.1 ========== (in cleanup) Died at -e line 1. $ perlbrew exec --with perl-5.18.1 perl -w -e 'package XX; sub AUTOLOA +D { die }; package main; bless {}, "XX"; ' perl-5.18.1 ========== $ perlbrew exec --with perl-5.18.1 perl -w -e 'package XX; sub DESTROY + { die }; package main; bless {}, "XX"; ' perl-5.18.1 ========== (in cleanup) Died at -e line 1.
Did not find anything in perldelta. Just wondering when this changed and why.

Replies are listed 'Best First'.
Re: Since when AUTOLOAD not longer DESTROYs?
by Corion (Patriarch) on Oct 23, 2015 at 08:36 UTC

    That's a bug introduced in 5.18 I think.

      Thank you!