You can always do this 
        scalar @$ref_arr

but this will give you the number of elements not the last index as $#array
would
On Fri, Aug 31, 2001 at 01:24:53PM -0200, Hamish Whittal shaped the electrons to read:
> Hi,
> 
> I have a reference to an array $ref_arr
> 
> I want the length of the array. normally just getting the length one
> would write something along the lines of:
>       $length = @#array; # Unless I am mistaken.
> 
> How do I find the length if I have a reference?
> 
> Cheers
> Hamish
> -- 
> Hamish Whittal                QED Technologies                Tel: +27 21 448 9291
> [EMAIL PROTECTED]                                    Fax: +27 21 448 9551
>                       `The' Linux Services Company    Cel: +27 82 803 5533
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to