Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: difference between @, $

by choroba (Chancellor)
on Dec 07, 2011 at 15:44 UTC ( #942271=note: print w/replies, xml ) Need Help??


in reply to difference between @, $

In the first case, you are assigning to an array @a. The first element of the array will be the reference to the anonymous array containing 4 values.
In the second case, you assign the reference directly to a scalar variable $a.
Or, as SuicideJunkie put it in the CB: in the first case, $a[0][2] == 3 and in the second case, $a->[2] == 3

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://942271]
help
Chatterbox?
[choroba]: but most tourist here are form the US, France, and Russia
[Your Mother]: The best whiskey in Thailand is Vietnamese, is all I know.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-02-26 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (371 votes). Check out past polls.