From: Jan Svitok Date: 2006-08-26T02:27:51+09:00 Subject: Re: No speedup...! On 8/25/06, Oliver Bandel wrote: > Hello, > > > The Code: > > ==================================== > def look_for_begin > while line = gets > if line =~ /^begin/ > puts line > # return > end > end > end > > ARGF.each { look_for_begin } iterates over LINES of files passes on commandline, not files. try ARGV for filenames. you can see the behaviour when you'll add puts "new file" before while