I would like to color format the text printed to the console using the Perl print command.
In my case the script will only be run under WinXP-DOS Command Line but it wou
Here is what worked best for me after all:
1) Installed Win32::Console::ANSI (note that this is not the same as Win32::Console)
perl -MCPAN -e shell
cpan> install Win32::Console::ANSI
2) If this module is loaded before Term::ANSIColor, you can use the standard Term::ANSIColor API and it actually works (I tried it with Windows 7).
use Win32::Console::ANSI;
use Term::ANSIColor;
print color("blue"), "blue\n", color("reset");
print "normal\n";