Sarsamkar, Paryushan wrote: > > I wanted to print some text on windows cmd in different colors, below is the > code that I am using which works fine on unix but not on windows L > > > > #!/usr/bin/perl > > use strict; > > use warnings; > > use Term::ANSIColor; > > > > print color("red"), "Stop!\n", color("reset"); > > print color("green"), "Go!\n", color("reset"); > > > > output - > > > > ←[31mStop! > > ←[0m←[32mGo! > > ←[0m
cmd.exe doesn't support ANSI sequences. You must use command.com instead. Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/