From: Phillip Gawlowski Date: 2010-11-14T01:35:07+09:00 Subject: Re: an each/block problem On Sat, Nov 13, 2010 at 4:42 PM, Paul Roche wrote: > >  but for an 'each' don't I need a block? Yes, you do. Which is why you declare your variables outside of a block if you need access to them after the block is done. For example: bor = [] [1,2,3].each {|num| bor[num] = Time.now } puts bor >  Sorry, could explaini this a bit more. I hope the above explanation helps. Also, I made a mistake: I should have changed your block variable (the bit between the |) to something else, otherwise Ruby 1.9 complains. P.S.: Please trim your quotes. :) -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.