in reply to Re: size of an array ref
in thread size of an array ref
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: size of an array ref
by swampyankee (Parson) on Feb 25, 2012 at 01:01 UTC | |
by Anonymous Monk on Feb 25, 2012 at 01:10 UTC |
In Section
Seekers of Perl Wisdom