We don't bite newbies here... much | |
PerlMonks |
Re^2: size of an array refby jethro (Monsignor) |
on Feb 24, 2012 at 16:49 UTC ( [id://955954]=note: print w/replies, xml ) | Need Help?? |
Sorry to disappoint you but the curly braces do not dereference, @{a} is equivalent to @a. The curly braces only allow more complicated constructs with unambiguous precedence, for example ${$a[3]}[4] versus ${$a}[3][4]. If you want dereference, @{$a} or simply @$a is the right choice.
Update: Thanks to choroba and SuicideJunkie for spotting a $ where a @ should have been
In Section
Seekers of Perl Wisdom
|
|