On Nov 21, 2007, at 10:58 PM, Peter Vanderhaden wrote: > I'm a newbie to Ruby & OO programming, so please bear with me. I > searched the forum & didn't find anything relevant. I want to > print the > value of argv[0] to standard output, but I can't figure out the > syntax. > Below is one of the ways I tried, but it obviously doesn't work. I'd > appreciate any advice anyone can provide, along with syntax that will > get this to work. > Thanks > > $stdout.print "Invalid filename entered: argv[0] \n" puts "Invalid filename entered: #{ARGV[0]}" Regards, Morton