Marco Lazzeri wrote: > Could someone please help me understanding why the next two lines of > code are different? > > next unless line =~ /=/ > > next if !line =~ /=/ I found out: it's a operators precedence problem. next unless line =~ /=/ next if !(line =~ /=/) # with parenthesis Marco -- Posted via http://www.ruby-forum.com/.