in reply to How to untie oneself?

You don't mention what kind of variable you are tying, though you do mention scalar later in your post, so this extract from the Perl 5.8 delta pod may or may not be relavent.

Self-tying Problems

Self-tying of arrays and hashes is broken in rather deep and hard-to-fix ways. As a stop-gap measure to avoid people from getting frustrated at the mysterious results (core dumps, most often), it is forbidden for now (you will get a fatal error even from an attempt).

A change to self-tying of globs has caused them to be recursively referenced (see: Two-Phased Garbage Collection in the perlobj manpage). You will now need an explicit untie to destroy a self-tied glob. This behaviour may be fixed at a later date.

Self-tying of scalars and IO thingies works.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Replies are listed 'Best First'.
Re: Re: How to untie oneself?
by Jenda (Abbot) on Jul 11, 2003 at 09:39 UTC

    I don't think I know what do they mean by self-tying. In either case the only type for which the untieing I want would make sense are scalars (ok maybe FILEHANDLEs as well, but Data::Lazy doesn't support that just now, and I don't think it ever will). Anyway thanks for warning me :-)

    Jenda
    Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
       -- Rick Osborne

    Edit by castaway: Closed small tag in signature