From: Greg Hauptmann Date: 2007-02-16T04:49:22+09:00 Subject: within a block passed to "each" can I detect the last time the block is called? ------=_Part_137732_32038070.1171568960895 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Does anyone know a way for the below code, to tell when the last block is called via "each" so that I can detect this and not add a superfluous "&" to the end of the string being built up? postDataHash.each { |key, value| postDataString << "#{key}=#{value}&" } Tks Greg ------=_Part_137732_32038070.1171568960895--