From: No Where Date: 2008-12-16T01:56:41+09:00 Subject: Re: Function def at end of scripts The Higgs bozo wrote: > def main > do_stuff(4, 5) > end > > def do_stuff(x, y) > p x ; p y > end > > main Thanks to all for the replies and I'm glad I sparked a bit of philosophizin too ;) This seems like the simplest way to get what I wanted at the beginning BUT, if it's an accepted methodology to do in order, then I will place it at the end. I have been learning Ruby and one way I practice it is to quit using other scripting languages to do do my simple scripting and work with Ruby for a while. Repetition is about the only way it will stick in the toolbox for me... Eric -- Posted via http://www.ruby-forum.com/.