From: Ivan Vodopiviz Date: 2005-08-17T12:56:32+09:00 Subject: Re: Newbie question AFAIK, both of them do the same thing. you're just changing the block delimiters. 2005/8/17, len : > Is there some difference in the code I'm not seeing or is one better > than the other: > > languages = ['English', 'German', 'Ruby'] > > languages.each do |lang| > puts 'I love ' + lang + '!' > puts 'Don\'t you?' > end > > languages.each { |lang| > puts 'I love ' + lang + '!' > puts "Don't you?"} > > Len Sumnler > > > -- BlueSteel | | Merkoth