http://www.perlmonks.org?node_id=757942


in reply to Re^4: if(my) scope
in thread if(my) scope

Agreed. It's a bug: the compile-time and run-time scopes differ.

Dave.

Replies are listed 'Best First'.
Re^6: if(my) scope
by oha (Friar) on Apr 16, 2009 at 13:00 UTC
    not a bug, as already explained, but a sin...
    right now i always seen DESTROY called exactly when the refcount fall to zero. was pretty predictable.

    anyway by being clearly documented i expect changes in the future, and that force me to find another way.

    Oha