[ create a new paste ] login | about

Link: http://codepad.org/rjE79qCe    [ raw code | fork ]

Ruby, pasted on Dec 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
first,second , third = ARGV

puts "The script is called: #{$0}"
print "what is your name?"
name = gets.chomp()
puts "so #{name}, your first variable is: #{first}"
puts "your second variable is: #{second}"
puts "your third var is: #{third}"




#i am getting error


#The script is called: hello.rb
#hello.rb:5:in `gets': No such file or directory - eat (Errno::ENOENT)
#	from hello.rb:5


Create a new paste based on this one


Comments: