> 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");

Have a look at Win32::Console.

Jenda
===== je...@krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to