I want to be able to compare two text strings and display the color difference. I tried String :: Diff but could not get the difference in display in color. I am using Windows with Active State perl 5, version 12.
Edit: ansi color etc. don't help me display color differences
Change: here is the result I want
$ string1 = "This is string 1";
$ string2 = "This is string 2";
some_diff_cmd ($ string1, $ string2);
The result I want (bold colors should be red)
### Lines do not match ####
string1 = This is line 1
string2 = This is line 2
source
share