in reply to How can I change the text color

First, remove the comma after FILE on the last two lines:
print FILE color("red"), "Stop!\n", color("reset"); print FILE color("green"), "Go!\n", color("reset");
Second, Term::ANSIColor uses ANSI escape sequences to color output. This is only useful in a standard terminal that complies with ECMA-048 and ISO 6429 - don't expect to be able to open the file in an editor and see pretty colors. :) Here is what text.txt should look like when viewed with the vim editor:
^[[31mStop! ^[[0m^[[32mGo! ^[[0m
If you cat the file in a compliant terminal, you will see colors.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)