From: Aldric Giacomoni Date: 2009-11-19T04:23:51+09:00 Subject: Re: Ruby/tk Help Please Sean Ob wrote: > > result*@list2.each + '\n' > #i realize this is horrible syntax, [...] however, for now i'm just shooting for functionality. Well, Ruby programmers (Rubyists) enjoy beautiful code. It's rather like poetry. There's a few choices. Why is @list2 an instance variable, first of all? 1) @list2.each { |element| puts element * result } 2) require 'pp' @list2.map! { |element| element * result } # More dangerous, as each element of the list changes. pp @list2 The code ought to be elegant. Do take the time to learn the syntax, the "Ruby way". You will thank yourself later on. If you do not wish to learn the syntax, then you should go to www.gigamonkeys.com and study LISP for about a month, then come back. -- Posted via http://www.ruby-forum.com/.