I'm a newbie to Ruby & OO programming, so please bear with me.
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.
$stdout.print "Invalid filename entered: argv[0] \n"
I know it won't print since it's within the quotes, but I've tried all the combinations I could think of with no luck.
PETERV
Syracuse, NY &
Boston, MA
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.
$stdout.print "Invalid filename entered: argv[0] \n"
I know it won't print since it's within the quotes, but I've tried all the combinations I could think of with no luck.
PETERV
Syracuse, NY &
Boston, MA