I too vote for the callback filters. I put these into
Test::Files. If you use the feature, your filter gets every line right before Algorithm::Diff sees it. It works great. I originally needed it to strip dates out of the machine generated files, since the files were made at different times and I only cared about the content not the time difference.
Phil