Perl: the Markov chain saw | |
PerlMonks |
Re^16: ref to read-only alias ... why? (notabug)by dk (Chaplain) |
on Jan 08, 2012 at 19:46 UTC ( [id://946908]=note: print w/replies, xml ) | Need Help?? |
Exactly the same aliasing occurs for both for(1..3) and for(1).
I'm sorry, but you're dead wrong here: clearly, there are two different mechanisms: the first does not do aliasing, whereas the second does. But anyway, I still don't understand the "working case" you referred to that my patch will break. Could you please produce that? Intentionally coded to return a value that can be changed without causing a read-only error. Is there any proof of that intention? Best in perldoc?
In Section
Seekers of Perl Wisdom
|
|