http://qs321.pair.com?node_id=734601


in reply to comparing two files, with known variations

Take a look onto File::Compare, there's a compare_text function which allows you to specify callback with line comparison function.