John Rubinubi wrote:
> 
> Thanks. That did it. Here's another, no doubt equally stupid question.
> 
> On p. 16 of Programming Ruby is given
> 
> ARGF.each {|line| print line  if line =~/Ruby/ }
> 
> which is supposed to print the inputted lines which contain "Ruby"
> 
> The while loop example in the book runs as expected but this ARGF
> one-liner doesn't seem to do anything.
> 
> Thanks,
> 
> John

I don't have the book but if this is about processing command line
arguments,
the variable to use is probably ARGV.  Otherwise, i can't help.

craig