EchoAngel has asked for the wisdom of the Perl Monks concerning the following question:
I don't know much about file handers.#!/tools/gnu/bin/perl-5.6.0-32bit use Term::ANSIColor qw(:constants); # BLACK RED GREEN YELLOW BLUE MAGENTA foreach $num (0 .. 9) { foreach $colour (BLACK, RED, GREEN, YELLOW, BLUE , MAGENTA) { print $colour "$num "; print RESET; } } print "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Outputing Colour to Screen
by borisz (Canon) on Oct 22, 2004 at 15:31 UTC | |
by EchoAngel (Pilgrim) on Oct 22, 2004 at 15:47 UTC | |
|
Re: Outputing Colour to Screen
by Anonymous Monk on Oct 22, 2004 at 15:34 UTC | |
|
Re: Outputing Colour to Screen
by gothic_mallard (Pilgrim) on Oct 22, 2004 at 15:35 UTC | |
by Anonymous Monk on Oct 22, 2004 at 15:38 UTC |