String::Diff and Text::Diff seem to come near to your need.
If not, you can either try to work with their source (in this case better: the source of Algorithm::Diff, or to tweak the output of e.g. String::Diff::diff_fully .
In reply to Re: How to campare two variable consist line and print difference
by soonix
in thread How to campare two variable consist line and print difference
by Mjpaddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |