On Sun, Feb 26, 2017 at 8:21 AM, ToddAndMargo <toddandma...@zoho.com> wrote:

> Now what am I doing wrong?

Read the POD!

use Terminal::ANSIColor;
say color('bold'), "this is in bold", color('reset'); ....

=head2 C<color()>
Given a string with color names, the output produced by C<color()>
sets the terminal output so the text printed after it will be colored
as specified. The following color names are recognised:
reset bold underline inverse black red green yellow blue
magenta cyan white default on_black on_red on_green on_yellow
on_blue on_magenta on_cyan on_white on_default
The on_* family of colors correspond to the background colors. One or
three numeric color values in the range 0..255 may also be specified:
N # 256-color map: 8 default + 8 bright + 216 rgb cube + 24 gray
on_N # Same, but background
N,N,N # 24-bit r,g,b foreground color
on_N,N,N # 24-bit r,g,b background color

In short the individual color names are no longer exportable, now use the
"color" sub.
maybe you can export only the "color" sub, and not the other subs that
module exports, if that's what you want for your code.


Reply via email to