PilotinControl25 has asked for the wisdom of the Perl Monks concerning the following question:
I would like to change the color of the output any suggestions instead of using print/printf/sprintf thanks.</>
#!/usr/bin/perl open (FILE, "railcardata.txt"); while (<FILE>) { chomp; ($roadname, $roadnumber, $cartype, $interrr) = split(":"); write; } close (FILE); format STDOUT_TOP = ====================================================================== ROAD NAME ROAD NUMBER CAR TYPE INTERCHANGE RAILROAD ====================================================================== . format STDOUT = @<<<<<<<<<<<<< @<<<<<<<<<<<<<< @<<<<<<<<<<<<<< @<<<<<<<<<<< $roadname, $roadnumber, $cartype, $interrr . sleep 12;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to change the color of the text
by toolic (Bishop) on Sep 26, 2012 at 02:06 UTC | |
by PilotinControl25 (Initiate) on Sep 26, 2012 at 02:11 UTC | |
by frozenwithjoy (Priest) on Sep 26, 2012 at 02:35 UTC | |
by Anonymous Monk on Sep 26, 2012 at 02:15 UTC | |
by PilotinControl25 (Initiate) on Sep 27, 2012 at 02:40 UTC | |
by Anonymous Monk on Sep 27, 2012 at 03:04 UTC | |
|
Re: How to change the color of the text
by Plankton (Vicar) on Sep 27, 2012 at 02:57 UTC |