From: "Konda R." Date: 2011-11-11T07:15:30+09:00 Subject: Re: sum returning two values Peter Hickman wrote in post #1031329: > I put you code into a file called x and ran it > > $ ruby x 9989 9991 9990 9989 > > 39959[~]$ > > Seems to be working here, cant think why it shouldn't Hi, I am atatchning my test files here, can you please help me . It is not working for some how... In unix I have the data but when I pass to ruby it is returning two values as sum instead of one value. Attachments: http://www.ruby-forum.com/attachment/6738/stats.sum.rb http://www.ruby-forum.com/attachment/6739/test2011-11-04 http://www.ruby-forum.com/attachment/6740/test.sh -- Posted via http://www.ruby-forum.com/.