On Sat, Nov 13, 2010 at 4:42 PM, Paul Roche <prpaulroche / gmail.com> wrote:
>
> =A0but 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 =3D []

[1,2,3].each {|num| bor[num] =3D Time.now }

puts bor

> =A0Sorry, 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. :)
--=20
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.