From: Brian Candler Date: 2003-07-11T16:44:21+09:00 Subject: Re: Ruby T-Shirt Idea On Fri, Jul 11, 2003 at 07:22:00AM +0900, Eric Schwartz wrote: > for($i=0; $i<=@array; $i++) { > print "$array[$i]\n" if $array[i] % 2; > } Did nobody spot the off-by-one error there? @array as a scalar gives the number of elements in the array, not the index of the last element. As good an argument for using iterators as I've ever seen... Regards, Brian.