Thanks James.
It didn't work me when I wrote your script as follows:
a = [1, 2, 3]
a.find {|x| x > 3}
puts a
puts x
Why doesn't that give the same output as in the format written by you,
while I can see that the logic here is correct?
--
Posted via http://www.ruby-forum.com/.