From: Martin DeMello Date: 2004-09-21T18:14:41+09:00 Subject: Re: Array#index block and rdetect Randy W. Sims wrote: > counter = 0 > var.each { |item| counter += 1; puts counter } > > A little less candy, but same effect. I'm not sure I see the benefit. In general, the easier ('cheaper') it is to do something, the more uses tend to be found for it. Compare the use of regexps in languages that let them be inlined with that in languages where you have to say re = Regexp.compile(string) every time you want one. martin