You can also use $#{$array} to get the length..
Hamish
Whittal To: perl beginners <[EMAIL PROTECTED]>
Sent by: cc:
hamish Subject: Getting the length of an array
that is a reference...
08/31/01
08:54 PM
Please
respond to
hamish
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]
********************************************
This electronic mail message is intended solely for the named recipients
and may contain confidential and proprietary business information of eFunds
Corporation and all its subsidiaries. If you are not a named recipient,
please notify the sender immediately. You may not disclose the contents to
any other person; use this electronic mail message or its contents for any
other purpose; or further store or copy its contents in any medium
********************************************
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]