Scheidel, Greg (Contractor) wrote:

> If you need to know the size of @array, why don't you use $#array?

Just to be clear :

The size of an array (number of elements) is 'scalar @array' (the
scalar operator is optional if already in a scalar context).

$#array would be the index of the last element of the array
(usually one less than the size of the array).

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to