Assigning the array to a scalar will give you a count:

push ( @initial_array, qw( apple orange bananna ));
$a = @initial_array;
print $a;

prints 3

-----Original Message-----
From: Ryan Guy [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Array Length.


I need to know the fastest way to determine a length of an array.  I know
there is a built in kind of thing somewhere.  I just cant remember it.
Thanks


-- 
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