Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Thx, St. Larry, for the Beauty of Sigils

by LanX (Cardinal)
on Jul 27, 2019 at 14:28 UTC ( #11103504=note: print w/replies, xml ) Need Help??


in reply to Re^2: Thx, St. Larry, for the Beauty of Sigils
in thread Thx, St. Larry, for the Beauty of Sigils

> 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
(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
    But sorry "plain variable" is blah.

    I was using my own wording for the distinction.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
      Ok so please explain "plain" in your own wording.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        No, since you already got the meaning.

        perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11103504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-07-10 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?