bcosca/fatfree — pull request #100 by WilliamStam (2012-09-17 16:23:10+00:00)
Title: added semi stats to the Text::diff thing. needed a percent of changes thing in my app. hope its usefull

$diff = text::diff($old,$new,$delim);

Stats
added: $diff['stats']['added'])
removed: $diff['stats']['removed']
old: $diff['stats']['old'] *
new: $diff['stats']['new'] *
percent: $diff['stats']['percent']

ie: added: 44 | removed: 38 | old: 66 | new: 72 | percent: 57.575757575758

* count of matched parts