From: Gavin Sinclair Date: 2004-09-18T10:06:14+09:00 Subject: Re: Accessing Hash elements in sorted order? On Saturday, September 18, 2004, 4:39:45 AM, Florian wrote: > Chris wrote: >> cgi = CGI.new >> cgi.params.sort.each { |pair| puts "#{pair[0]}=#{pair[1]}" } > One small suggestion: > cgi.params.sort.each do |(key, value)| > puts "#{key}=#{value}" > end cgi.params.sort.each do |key, value| works as well. Do the parentheses add anything -- like future-proofing? Gavin