From: "Mauricio Fernández" Date: 2002-08-16T06:56:46+09:00 Subject: Re: Is it possible?---ruby xxx.rb arg1 arg2... On Fri, Aug 16, 2002 at 06:34:17AM +0900, Chai, Xinwei wrote: > Hellow guys: > > It'll be highly appreciated if you know: > > In a qaz.rb, how to read and use arguments setting by command line > > for example: "ruby queens.rb 8" Sure, use ARGS. You may want to take a look at GetoptLong, http://www.rubycentral.com/book/lib_standard.html -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com * dpkg ponders: 'C++' should have been called 'D' -- #Debian