oops $#array is the index index of the last element 

-----Original Message-----
From: Shishir K. Singh 
Sent: Friday, May 31, 2002 11:23 AM
To: Barry Jones; Beginners @ Perl (E-mail)
Subject: RE: Simple array question


No of elements in an array is given by $#ARRAY_NAME

eg the number of element in an array @array is $#array

  


-----Original Message-----
From: Barry Jones [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 11:17 AM
To: Beginners @ Perl (E-mail)
Subject: Simple array question


What type of functions are built in to perl for arrays?

Mainly, I'm looking to find out how to see how many elements are in an
array without counting them, but I was wondering about others too.

What about hashes?

Barry Jones
DATABUILT, Inc. The Global AEC Information Company
1476 Fording Island Rd. Bluffton, SC 29910
(843) 836-2166 office

"Life is like a dogsled team;
if you ain't the lead dog, the scenery never changes."
- Lewis Grizzard


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


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

Reply via email to