go ahead... be a heretic | |
PerlMonks |
Re^3: Thx, St. Larry, for the Beauty of Sigilsby LanX (Saint) |
on Jul 27, 2019 at 14:28 UTC ( [id://11103504]=note: print w/replies, xml ) | Need Help?? |
> No, we have plain variables and references to variables (and functions). I was using my own wording for the distinction. But sorry "plain variable" is blah. The fact that other languages do implicit dereferencation in their syntax doesn't make them less plain. $a, %a and @a are in fact containers for references, to allow such implicit dereferencation. °
So how are containers "plain" now? But Perl is more explicit* here, which helps understanding what is really happening if you do an assignment a=b in another languages, where they sometimes copy the content or the reference.
Cheers Rolf
updates°) e.g. $a[0] is by definition (\@a)->[0] *) "Explicit is better than implicit" quote from Python blah
In Section
Meditations
|
|