in reply to size of an array ref
A question I can still answer!
The size of a reference to an array is a scalar. If you're looking for the size of the array to which the references is pointing, you may try this:
print scalar(@{a});
The curly braces are the dereference operator. Now, if I misunderstood, and you want to know something like the total size of a array of references to arrays, my answer is likely useless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: size of an array ref
by jethro (Monsignor) on Feb 24, 2012 at 16:49 UTC | |
by swampyankee (Parson) on Feb 25, 2012 at 01:01 UTC | |
by Anonymous Monk on Feb 25, 2012 at 01:10 UTC | |
|
Re^2: size of an array ref
by Marshall (Canon) on Feb 26, 2012 at 01:38 UTC |