From: Jon Babcock Date: 2000-10-02T17:55:10+09:00 Subject: [ruby-talk:5220] Ruby Book, Eng. tl, ch1 -- code snippet correct? Dave has kindly let me know that this code generates a warning with the latest Ruby. It comes from the Ruby Book, ch1, 1.1.8. Should I change anything? # grep written in four lines pat = Regexp.new(ARGV.shift) while line = gets() print line if line =~ pat end Thanks. Jon -- Jon Babcock