Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: ref to read-only alias ... why?by LanX (Saint) |
on Jan 05, 2012 at 23:27 UTC ( [id://946494]=note: print w/replies, xml ) | Need Help?? |
Interesting ... It appears like read-only values are not modified when aliased.
UPDATE: Seems to me like "aliasing" read-only values is falling back to "copying". Or in other words: Only lvalues can be "really" aliased. Which makes sense in a way, because the original value can't be changed anyway.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|