in reply to Re^2: Thx, St. Larry, for the Beauty of Sigils
in thread Thx, St. Larry, for the Beauty of Sigils
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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
updates
°) e.g. $a[0] is by definition (\@a)->[0]
*) "Explicit is better than implicit" quote from Python blah
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Thx, St. Larry, for the Beauty of Sigils
by shmem (Chancellor) on Jul 27, 2019 at 14:31 UTC | |
by LanX (Saint) on Jul 27, 2019 at 14:32 UTC | |
by shmem (Chancellor) on Jul 27, 2019 at 14:35 UTC | |
by LanX (Saint) on Jul 27, 2019 at 14:36 UTC | |
by shmem (Chancellor) on Jul 27, 2019 at 14:52 UTC | |
|