From: Jeremy McAnally Date: 2007-11-15T02:08:42+09:00 Subject: Re: Put a argument into a Ruby script I believe the ARGV array is what you're looking for. :) --Jeremy On Nov 14, 2007 11:55 AM, Zangief Ief wrote: > Hi, > > I would like to send a value in a script by using a argument. For > example, that could be my command: > > $ ./script.rb Hello world > > And that could be my script: > > puts "#{$1} #{$2}" > > But I have try it and it do not work... Thank you for your help. > -- > Posted via http://www.ruby-forum.com/. > > -- http://www.jeremymcanally.com/ My books: Ruby in Practice http://www.manning.com/mcanally/ My free Ruby e-book http://www.humblelittlerubybook.com/ My blogs: http://www.mrneighborly.com/ http://www.rubyinpractice.com/