Hi
Todd Chester,
the syntax you use does not work either with Term::ANSIColor used with Perl 5. So, it appears that it is your syntax for using such module that is faulty. Please check the documentation.
I can't test right now, but perhaps try something along these lines:
my $red = color("red");
print $red;
my $reset = color('reset');
print ( $red ~ "--Red--" ~ $reset ~ "foo\n\n" );
or possibly:
my $red = Term::ANSIColor::color("red");
print $red;
my $reset = Term::ANSIColor::color('reset');
print ( $red ~ "--Red--" ~ $reset ~ "foo\n\n" );
Update: Fixed a capital letter at the beginning of a variable.