From: volty Date: 2003-05-30T12:46:05+09:00 Subject: Re: Iteration - last detection I couldn't resist to post to this (so) long thread. It would be nice to give an example why you should need this. So people answer with richer ideas. If ruby users == perl users this thread would be 1000 long :) Anyway, it's becoming so hot here! :) Orion Hunter wrote: > Is there any built in functionality for iteration that will allow me to > detect when I am on the last element? This would not be hard for an > Array, using array.length, but what about a Hash? How would I know when > I am at the last element? > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > >