Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Shouldn't references be readonly?by LanX (Saint) |
on Aug 05, 2020 at 19:13 UTC ( [id://11120347]=note: print w/replies, xml ) | Need Help?? |
> The {} and [] operators construct new aggregates each time they are evaluated. This might come as a surprise but literals in Perl are always new as you can see by the references.°
I know there are languages where it's always the same (IMHO do Ruby and Lisp have a syntax for this) but this is not what I mean or asked. Alas ... few of the respondents here seem to have read the code in the OP and really have a deep grasp of aliases.
Cheers Rolf °) well undef is an exception, but it's debatable if that's a literal or a constant.
In Section
Seekers of Perl Wisdom
|
|