develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [perl #22290] scalar untie doesn't always work

Thread Previous | Thread Next
David Muir Sharnoff
May 23, 2003 10:54
Re: [perl #22290] scalar untie doesn't always work
Message ID:

* There is nothing in the documentation to say that it should
* be reverted to its old value.
* > If I add UNTIE or DESTROY methods to Overlay, they are called.
* > 
* > If I drop the 'print "tied x = $x.\n";' line then $x remains at "7".
* Thats because when FETCH is called perl needs somewhere to place the
* result before actually using it. In the case of a tied SCALAR it uses the
* scalar that is tied. So there is now way that the old value can be
* reverted to. After untie, a scalar will always hold the last value
* that was fetched or set.

Okay, I can live with that.  Please close this bug out.  

I think I've got a couple more related to TIESCALAR, but I'll
submit 'em separately when I've got good test cases.

Thank you for the prompt response!


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About