On Tue, 14 Mar 2017 01:46:17 -0700, davem wrote: > Can you provide a short, self-contained perl program which demonstrates > the bug, and which would be fixed by why you propose above; just so that > we can be sure we're all discussing the same issue. I already did so here: https://rt.perl.org/Ticket/Display.html?id=32714#txn-1453380 I would expect $our1->DESTROY to be run before $our2->DESTROY because $our1 holds a reference to $our2. But (at least with Perl 5.22.1), the DESTROY method is first invoked on $our2. --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=32714Thread Previous | Thread Next