On Fri, 31 Aug 2001 [EMAIL PROTECTED] wrote:

> You can also use $#{$array} to get the length..

No, that only gives you the index of the last element!  You will be off by
one if you do it that way.  The correct way is to put the array (or array
ref) into a scalar context, which gives the length of the array.

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
Punishment becomes ineffective after a certain point.  Men become insensitive.
                -- Eneg, "Patterns of Force", stardate 2534.7


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

Reply via email to