If I run

   while line = gets
     puts(line) if line =~ /cat/ .. line =~ /dog/
   end

with ruby -w, I get:

   t.rb:2: warning: range literal in condition

Does this mean I should deprecate the use of ranges in conditions?


Cheers


Dave