From: William Crawford Date: 2006-08-25T23:37:54+09:00 Subject: Re: unless =~ vs. ! =~ Marco Lazzeri wrote: > Hi! > > Could someone please help me understanding why the next two lines of > code are different? > > next unless line =~ /=/ > > next if !line =~ /=/ > > > Thanks, > Marco I suspect !line =~ /=/ is not the same as !(line =~ /=/). Do you have more of an example that people can run in IRB to verify? -- Posted via http://www.ruby-forum.com/.