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:

#!/usr/bin/perl6
use Inline::Perl5;
use Term::ANSIColor:from<Perl5> <color>;

my $Red   = color('red');
my $Reset = color('reset');
print ( $Red ~ "--Red--" ~ $Reset ~ "\n\n" );
</code>

You can also refer to this function with Term::ANSIColor::color(...).

--Brock

Thank you!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Having been erased,
The document you're seeking
Must now be retyped.
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to