Path: csiph.com!goblin3!goblin-spool!goblin2!goblin.stu.neva.ru!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: jacki Newsgroups: comp.lang.ruby Subject: Re: Input_file = ARGV.first Date: Tue, 19 Apr 2016 12:43:02 +0200 Organization: ATMAN - ATM S.A. Lines: 15 Message-ID: <57160BB6.5080406@idealan.pl> References: <7eed3dbb-85c0-4ba4-a429-7096d74c9d6d@googlegroups.com> NNTP-Posting-Host: biuro.idealan.pl Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: node1.news.atman.pl 1461062576 23789 178.212.148.2 (19 Apr 2016 10:42:56 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Tue, 19 Apr 2016 10:42:56 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 To: Cai Gengyang In-Reply-To: <7eed3dbb-85c0-4ba4-a429-7096d74c9d6d@googlegroups.com> Xref: csiph.com comp.lang.ruby:7230 W dniu 2016-04-19 o 12:02, Cai Gengyang pisze: > What does this line in Ruby : Input_file = ARGV.first mean ? > > How does it work? Can give an example ? HELP , HELP ..... > $ cat argv.rb #!/usr/bin/env ruby puts ARGV.inspect $ ruby argv.rb hard to say ["hard", "to", "say"]