From: Martin DeMello Date: 2007-05-14T12:19:42+09:00 Subject: Re: compare between languages On 5/14/07, xymip wrote: > In the meantime what is the best way to create a program file and then > run it via terminal? Edit the file with your favourite text editor, save it with a .rb extension, then run it from the prompt using ruby . The command line arguments are captured in ARGV. For example ~ $ cat >> greet.rb name = ARGV[0] puts "Hello #{name}" ~ $ ruby greet.rb Martin Hello Martin ~ $ martin