Re: [OT] blessed sub-refs in the symbol table

2013-02-01 Thread Philippe Bruhat (BooK)
On Thu, Jan 31, 2013 at 11:12:30AM +, David Cantrell wrote: > I am most disappointed to find that if you put a blessed sub-ref in the > symbol table and then replace it, its DESTROY method doesn't get called > straight away: > > package Immortal; > > sub new { return bless sub { print "called

Re: [OT] blessed sub-refs in the symbol table

2013-02-01 Thread Nicholas Clark
On Thu, Jan 31, 2013 at 11:12:30AM +, David Cantrell wrote: > I am most disappointed to find that if you put a blessed sub-ref in the > symbol table and then replace it, its DESTROY method doesn't get called > straight away: > > package Immortal; > > sub new { return bless sub { print "called

Re: [OT] blessed sub-refs in the symbol table

2013-02-01 Thread Matt Lawrence
On 01/02/13 09:21, Nicholas Clark wrote: On Thu, Jan 31, 2013 at 11:12:30AM +, David Cantrell wrote: I am most disappointed to find that if you put a blessed sub-ref in the symbol table and then replace it, its DESTROY method doesn't get called straight away: package Immortal; sub new { re