Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It doesnt want to print the word in red coloring. Do i need to check if I have color-xterm or if I have vt100 on my Windows NT local workstation where I am trying to run this? Here is the script:.[31mword colors .[0m.[31mword colors .[0m.[31mword colors .[0m.[31mword colors .[0m.[31mword colors .[0m.[31mword colors .[0m.[31mword colors
use Term::ANSIColor; use strict; my $db = 'bas.txt'; open(DATA, "$db") or die "Can not open: $!\n"; our @dat = (<DATA>); close(DATA); open(DATA, ">$db") or die "NO GO: $!\n"; foreach (@dat) { print DATA color("red"), "word colors\n", color("reset"); } close(DATA);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Word Colors
by crenz (Priest) on Aug 28, 2002 at 12:43 UTC | |
by Mr. Muskrat (Canon) on Aug 28, 2002 at 23:06 UTC | |
by Anonymous Monk on Dec 12, 2002 at 11:55 UTC | |
|
Re: Word Colors
by RMGir (Prior) on Aug 28, 2002 at 12:42 UTC |