I guess you could always dereference the array then find its size.
my(@sample, $ref, @de_ref);
# Original array.
@sample = ('sample', 'sample');
# Make reference to original array.
$ref = [EMAIL PROTECTED];
# De-reference the original array.
@de_ref = @$ref;
# Get the size from the reference.
pri
Andrew Gaffney wrote:
> david wrote:
> > Andrew Gaffney wrote:
> >
> >
> >>I've got an array reference and I'm trying to figure out how many elements
> >>are in it. I've tried '$#arrayref', '[EMAIL PROTECTED]', '$(@($arrayref))', and
> >>probably a few others that I've forgotten. What is the corre
Andrew Gaffney wrote:
>
> david wrote:
> > Andrew Gaffney wrote:
> >
> >
> >>I've got an array reference and I'm trying to figure out how many elements
> >>are in it. I've tried '$#arrayref', '[EMAIL PROTECTED]', '$(@($arrayref))', and
> >>probably a few others that I've forgotten. What is the corr
david wrote:
Andrew Gaffney wrote:
I've got an array reference and I'm trying to figure out how many elements
are in it. I've tried '$#arrayref', '[EMAIL PROTECTED]', '$(@($arrayref))', and
probably a few others that I've forgotten. What is the correct way to do
this?
you can try @{EXP} or $#{E
Andrew Gaffney wrote:
> I've got an array reference and I'm trying to figure out how many elements
> are in it. I've tried '$#arrayref', '[EMAIL PROTECTED]', '$(@($arrayref))', and
> probably a few others that I've forgotten. What is the correct way to do
> this?
you can try @{EXP} or $#{EXP}+1 w