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 <jon / kanji.com>