Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Scalar refs, aliasing, and recursion weirdness.

by Zaxo (Archbishop)
on Feb 04, 2005 at 23:27 UTC ( #428245=note: print w/replies, xml ) Need Help??


in reply to Scalar refs, aliasing, and recursion weirdness.

I think that this is because the position and length arguments of lvalue substr not being reevaluated after an assignment which changes the length. It probably caused no trouble so laong as it is working in place, but makes only the old length of characters be copied when it copies.

We've seen this berore when talking about lvalue subs! ;-)

After Compline,
Zaxo

  • Comment on Re: Scalar refs, aliasing, and recursion weirdness.

Replies are listed 'Best First'.
Re^2: Scalar refs, aliasing, and recursion weirdness.
by BrowserUk (Pope) on Feb 04, 2005 at 23:37 UTC
    We've seen this before when talking about lvalue subs! ;-)

    Yes. We have haven't we. It has been a recurrent theme of ours.:)

    Though they fixed the original problem of any one sourcecode statement only having a single lvalue ref that got reused each time that statement was reexecuted.

    I thought that had fixed the problems--but maybe my notion of what an lvalue ref should do is different from what the authors envisaged?


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://428245]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2021-10-26 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?