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


Groups > comp.lang.ruby > #7230

Re: Input_file = ARGV.first

From jacki <collector@idealan.pl>
Newsgroups comp.lang.ruby
Subject Re: Input_file = ARGV.first
Date 2016-04-19 12:43 +0200
Organization ATMAN - ATM S.A.
Message-ID <57160BB6.5080406@idealan.pl> (permalink)
References <7eed3dbb-85c0-4ba4-a429-7096d74c9d6d@googlegroups.com>

Show all headers | 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