The length (number of elements) of an array is returned when an array is called under a scalar context.
@array = (1,2,3); $size = @array; # $size gets 3, number of elements in array print scalar @array; # prints the number 3 Hope this helps! Zhe ----- Original Message ----- From: "Chris Zampese" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 10, 2002 6:18 PM Subject: array question > Hi all, > Just wondering if someone could direct me in the right direction... > I am trying to find the number of elements in an array?? any clues gratefully accepted. thanks as always, > Chris. > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]