From: Bill Kelly Date: 2001-12-16T03:35:49+09:00 Subject: [ruby-talk:28634] Re: Reviews solicited for Ruby article From: "Bill Kelly" > counts = Hash.new(0) > text.scan(/[A-Z]/).each {|c| counts[c] += 1} By the way, I realized last night the 'each' is not even necessary, as - ofcourse ! - one can pass a block straight into scan: text.scan(/[A-Z]/) {|c| counts[c] += 1} Does Ruby Rock, or what !?? :-) Regards, Bill