From: James Edward Gray II Date: 2006-03-13T22:53:24+09:00 Subject: Re: Help me understand why the Ruby block is slower than wit On Mar 13, 2006, at 6:38 AM, semmons99@gmail.com wrote: > File.open( "./words" ).readlines.each do |line| > > print line if line.length == 11 and line.split.uniq > > end That can be shortened to: File.readlines("words").each do |line| # ... end I think that's more Ruby-like. Also, wouldn't line.split.uniq always return a true value? James Edward Gray II