I want to be able to compare two text string and display the difference in color. I tried String::Diff but could not get the difference to display in color. I am using Windows with Active State perl 5, version 12.
Edit : the ansi color etc do not help me with displaying the differences in color
Edit : Here is the result I want
$string1 = "This is string 1" ; $string2 = "This is string 2" ; some_diff_cmd($string1,$string2) ;
Output I want (the entries in bold should be in color say red)
### Strings do not match ####
string1 = This is string 1
string2 = This is string 2
How about this?