Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Shouldn't references be readonly?by LanX (Saint) |
on Aug 05, 2020 at 17:13 UTC ( [id://11120328]=note: print w/replies, xml ) | Need Help?? |
> The literal reference is just a value which in your map just happens to be contained in $_. I think you are trying to say that references are not aliased but copied in "aliasing situations" to avoid some overhead... But if you look at the following results you will notice that the ref of an alias is still identical while the ref of a copy isn't. (I used @R to keep the refcount up and hence avoid the reuse of freed addresses)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|