"Jan Hartung via RT" <bug-ANSIColor@rt.cpan.org> writes:
Show quoted text> Hi! I found a few syntax errors in your PODs Synopsis.
Show quoted text> Could you please add a colon and a quote to the following two lines:
> print colored ['red on_bright_yellow'] 'Red on bright yellow.', "\n";
> print colored ['bright_red on_black], 'Bright red on black.', "\n";
Thanks! I'll indeed fix this.
Show quoted text> The statement
> use Term::ANSIColor qw(colorstrip);
> Gives:
> "colorstrip" is not exported by the Term::ANSIColor module
> Same for:
> use Term::ANSIColor qw(colorvalid);
Show quoted text> Following
> print PUSHCOLOR BRIGHT_BLUE "This text is bright blue on green.\n";
> print RESET BRIGHT_BLUE "This text is just bright blue.\n";
Show quoted text> String found where operator expected at ... line 8, near "BRIGHT_BLUE
> "This text is bright blue on green.\n""
> (Do you need to predeclare BRIGHT_BLUE?)
Show quoted text> FYI:
> perl -MTerm::ANSIColor -e 'print $Term::ANSIColor::VERSION'
> 3.00
Despite the version number, I think you're somehow not picking up the
latest Term::ANSIColor. I don't have a good explanation for the mismatch
(maybe different library paths or different versions of Perl?), but this
definitely works if you're using the proper 3.00 version.
windlord:~/dvl/ansicolor> perl -Iblib/lib -e 'use Term::ANSIColor qw(colorstrip colorvalid)'
windlord:~/dvl/ansicolor> perl -Iblib/lib -e 'use Term::ANSIColor qw(:pushpop); print RESET BRIGHT_BLUE "This text is just bright blue\n", RESET'
This text is just bright blue
The test suite explicitly checks that the exports of those symbols are
working. I would check your Perl library path to be sure you know which
version of the module is first and possibly move aside any other versions
just to be certain and then try this again.
Show quoted text> perl -v
> This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
windlord:~/dvl/ansicolor> perl -v
This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi
--
Russ Allbery (rra@stanford.edu) <
http://www.eyrie.org/~eagle/>