Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7230

Re: Input_file = ARGV.first

Path csiph.com!goblin3!goblin-spool!goblin2!goblin.stu.neva.ru!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From jacki <collector@idealan.pl>
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> (permalink)
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 <gengyangcai@gmail.com>
In-Reply-To <7eed3dbb-85c0-4ba4-a429-7096d74c9d6d@googlegroups.com>
Xref csiph.com comp.lang.ruby:7230

Show key headers only | View raw


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"]

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Input_file = ARGV.first Cai Gengyang <gengyangcai@gmail.com> - 2016-04-19 03:02 -0700
  Re: Input_file = ARGV.first jacki <collector@idealan.pl> - 2016-04-19 12:43 +0200
    Re: Input_file = ARGV.first Cai Gengyang <gengyangcai@gmail.com> - 2016-04-19 04:12 -0700
      Re: Input_file = ARGV.first jacki <collector@idealan.pl> - 2016-04-19 15:52 +0200

csiph-web