Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: difference between @, $by choroba (Cardinal) |
on Dec 07, 2011 at 15:44 UTC ( [id://942271]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|