Joel Pearson wrote in post #1080994:
> temp.push cell

Thanks @Joel and @Chris

I used the push method and got it working. But was wondering one thing, 
that i can assign values in an array by writing the following:

Arr = [1,2,3]

but i cannot use var that is being iterated by a "do..end" and assign 
the values of var into an array as i was doing earlier:

row.each do |cell|
    temp = cell.to_s('latin1')
end

is my understanding correct?

-- 
Posted via http://www.ruby-forum.com/.