Re: Why does Tie::Simeple (scalar) work without real local data?
- From: Uri Guttman <uri@xxxxxxxxxxxxxxx>
- Date: Tue, 05 Dec 2006 14:51:20 -0500
"JWK" == John W Krahn <someone@xxxxxxxxxxx> writes:
JWK> Uri Guttman wrote:
>>>>>>> "JWK" == John W Krahn <someone@xxxxxxxxxxx> writes:
JWK> If you increment a reference it *becomes* a number and cannot be
JWK> changed back to a reference. Likewise, if you stringify a
JWK> reference it cannot be changed back to a reference.
>> the difference with the OP's code is that ++ will change the ref value
>> to a number and store it back into $x and then the ref is lost
>> forever. just using a ref in some expression without modifiying it will
>> not change the ref.
JWK> That's what I thought I was saying. Unfortunately the code I
JWK> used did not convey that point. :)
well you didn't say it in english either. the first quoted paragraph
above say stringifying will convert a ref and not be allowed to convert
back. i was correcting that and also the example code.
uri
--
Uri Guttman ------ uri@xxxxxxxxxxxxxxx -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
.
- References:
- Why does Tie::Simeple (scalar) work without real local data?
- From: Mumia W. (reading news)
- Re: Why does Tie::Simeple (scalar) work without real local data?
- From: Dr.Ruud
- Re: Why does Tie::Simeple (scalar) work without real local data?
- From: Mumia W. (reading news)
- Re: Why does Tie::Simeple (scalar) work without real local data?
- From: Dr.Ruud
- Re: Why does Tie::Simeple (scalar) work without real local data?
- From: Mumia W. (reading news)
- Re: Why does Tie::Simeple (scalar) work without real local data?
- From: John W. Krahn
- Re: Why does Tie::Simeple (scalar) work without real local data?
- From: Uri Guttman
- Re: Why does Tie::Simeple (scalar) work without real local data?
- From: John W. Krahn
- Why does Tie::Simeple (scalar) work without real local data?
- Prev by Date: Re: Sort::Maker : anonymous sub is compiled outside of my module
- Next by Date: Re: Sort::Maker : anonymous sub is compiled outside of my module
- Previous by thread: Re: Why does Tie::Simeple (scalar) work without real local data?
- Next by thread: FDF2XML skript?
- Index(es):
Relevant Pages
|
|