Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Unifying namespaces of @name and $name... (bare lexicals)

by LanX (Archbishop)
on Mar 25, 2016 at 16:57 UTC ( #1158807=note: print w/replies, xml ) Need Help??

in reply to Re: Unifying namespaces of @name and $name... (bare lexicals)
in thread Unifying namespaces of @name and $name to simplify dereferencing?

BTW: there is a subtle difference between @arr=(1,2,3) and $arr=[1,2,3] , the first is reusing the allocated space (eventually expanding) to store the list , the latter assigning a ref to a newly allocated memory location.

One needs both!

In a language without sigils you have to invent list mechanisms to implement this.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2019-11-16 01:33 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (85 votes). Check out past polls.