On 03/05/2017 09:05 PM, Brock Wilcox wrote:
Looks like Term::ANSIColor does weird things with exported constants --
they are some sort of constant-function rather than simple strings. Here
is an alternate usage that does what you want:
use Term::ANSIColor:from<Perl5> <color>;
my $Red = color('red');
my $Reset = color('reset');
print ( $Red ~ "--Red--" ~ $Reset ~ "\n\n" );
You can also refer to this function with Term::ANSIColor::color(...).
Having been erased,
The document you're seeking
Must now be retyped.