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]
- Getting the length of an array that is a reference... Hamish Whittal
- Re: Getting the length of an array that is a ref... Jos I. Boumans
- Re: Getting the length of an array that is a ref... Brett W. McCoy
- Re: Getting the length of an array that is a ref... register
- RE: Getting the length of an array that is a ref... Bill Odom
- RE: Getting the length of an array that is a ref... Bob Showalter
- Re: Getting the length of an array that is a ref... Aravindan . Sundaram
- Re: Getting the length of an array that is a... Brett W. McCoy
- Re: Getting the length of an array that is a... Randal L. Schwartz
- Re: Getting the length of an array that is a... Paul Johnson