Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Scalar refs, aliasing, and recursion weirdness.

by Zaxo (Archbishop)
on Feb 04, 2005 at 23:27 UTC ( [id://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 (Patriarch) 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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-29 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found