From: Joel VanderWerf Date: 2009-08-20T02:26:37+09:00 Subject: Re: Confirm my Performance Test Against Java? Mike Sassak wrote: > Argh! That gist should be http://gist.github.com/170476. Sigh... And you can even, with another ounce of ruby-love, rewrite that as: num = 0 ARGF.each do |l| num += l.split.length end Then it also works with stdin or multiple filenames on the cmdline. I'll leave it to others to #inject... ;) -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407