Perl print String difference

This function prints the difference between two strings with Perl:

You need the Module Term::ANSIColor, to highlight the changes,use it like this:

And the Result is :

ColorStringDiff

Perl Terminal Colours

This example shows how to print some colours with Perl.

The result looks like this:

Screenshot_Color_Terminal

On some Terminal it don’t work, so another solution is to use the Module Term::ANSIColor:

Result is now:

TerminalColor