Perl Algorithm::Diff - treat predefined changes as unchanged

132 Views Asked by At

I'm comparing a template to the output based on that template, so I need to produce sdiff output that is tolerant of specified changes; essentially I want the template line:

Foo bar blarg [TAG] lorem ipsum 

to match any of

Foo bar blarg .+ lorem ipsum

rather than being reported as changed.

What's the easiest way to go about this?

0

There are 0 best solutions below