in reply to Re: Trying to DESTROY() an object
in thread SOLVED: Trying to DESTROY() a (closure-wrapped) object

The problem you are hitting is that there is no guaranteed time for garbage collection. Therefore, garbage collection hasn't happen on the very short time scale for your test.

You must be thinking of some language other than Perl v5. You describe a weakness of many languages. But Perl v5 doesn't have that problem.

- tye        

  • Comment on Re^2: Trying to DESTROY() an object (!gc)

Replies are listed 'Best First'.
Re^3: Trying to DESTROY() an object (!gc)
by kennethk (Abbot) on Dec 09, 2015 at 16:04 UTC
    Sorry, I neglected to correct that chunk with the rest of the conversation. Updated appropriately.

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.