From: "Peña, Botp" Date: 2007-07-19T18:06:10+09:00 Subject: Re: Array : each_with_index [mailto:list-bounce@example.com] On Behalf Of Vin Raja: # But what I actually wanted was this sort of output: # >ruby try.rb # Found 2 orders # (1) KLP # (2) OGN just want you to show the evolution from your original scheme (spot the difference) to that of roberts (retaining your original inlining) C:\family\ruby>cat -n try.rb 1 puts "---scheme 1---" 2 r = ['KLP','OGN'] 3 msg =<ruby try.rb ---scheme 1--- Found 2 orders (1) KLP (2) OGN ---scheme 2--- Found 2 orders (1) KLP (2) OGN ---scheme 3--- Found 2 orders (1) KLP (2) OGN kind regards -botp