From: Tim Hunter Date: 2008-12-07T23:27:22+09:00 Subject: Re: newbie's question: getting parameters given to hello.rb file L. Maiwald wrote: > hello, > > given i have a programme "hello.rb" and i execute it in terminal like > this > > ./hello.rb lalala lala stuff > > how do i get the "lalala lala stuff" into my programme? > > thanks The arguments are in the ARGV array. ARGV[0] is the first argument, ARGV[1] the second, and so forth. -- RMagick: http://rmagick.rubyforge.org/