Perl Monk, Perl Meditation | |
PerlMonks |
Re^4: Shouldn't references be readonly?by LanX (Saint) |
on Aug 05, 2020 at 21:56 UTC ( [id://11120372]=note: print w/replies, xml ) | Need Help?? |
> That seems to be because a reference to a literal actually constructs a new scalar; again more theories ... see how the ref to a real constant like a stays stable in Re^8: Shouldn't references be readonly? (updated) and please explain the difference to your allegedly constant 1 . > There is no such thing as a literal aggregate in Perl — the {} and [] operators are defined as constructors instead. Defined? ... Source?
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|