Thanks All,
I got the nuance.
But my problem just got a bit more messier.
have a look down here:
r = ['KLP','OGN' ]
msg =<<MSG
Found #{r.length} orders
#{r.map.each_with_index{|v,i| puts "(#{i+1}) #{v}\n" }}
MSG
puts msg
This prints:
>ruby try.rb
(1) KLP
(2) OGN
Found 2 orders
KLPOGN
>Exit code: 0
And this time I also know why, thanks again.
But what I actually wanted was this sort of output:
>ruby try.rb
Found 2 orders
(1) KLP
(2) OGN
>Exit code: 0
Any Help!
Thanks
raja
--
Posted via http://www.ruby-forum.com/.