bef = IO.read(__FILE__) aft = $<.read bef.chars.zip(aft.chars).each_with_index do |cc,i| if cc[0] != cc[1] p i puts '"'+cc[0]+'"' puts '"'+cc[1]+'"' exit end end