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?? |
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,
In Section
Seekers of Perl Wisdom
|
|