Skip Menu |
 

This queue is for tickets about the Term-ANSIColor CPAN distribution.

Report information
The Basics
Id: 66594
Status: resolved
Priority: 0/
Queue: Term-ANSIColor

People
Owner: Nobody in particular
Requestors: EGGA [...] cpan.org
Cc: iskoe [...] web.de
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 3.01



CC: iskoe [...] web.de
Subject: Synopsis Syntax Errors in POD
Download (untitled) / with headers
text/plain 931b
Hi! I found a few syntax errors in your PODs Synopsis. 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"; The statement use Term::ANSIColor qw(colorstrip); Gives: "colorstrip" is not exported by the Term::ANSIColor module Same for: use Term::ANSIColor qw(colorvalid); Following print PUSHCOLOR BRIGHT_BLUE "This text is bright blue on green.\n"; print RESET BRIGHT_BLUE "This text is just bright blue.\n"; 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?) FYI: perl -MTerm::ANSIColor -e 'print $Term::ANSIColor::VERSION' 3.00 perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi Best Regards Jan "Egga" Hartung
Subject: Re: [rt.cpan.org #66594] Synopsis Syntax Errors in POD
Date: Sun, 13 Mar 2011 18:49:43 -0700
To: bug-ANSIColor [...] rt.cpan.org
From: Russ Allbery <rra [...] stanford.edu>
Download (untitled) / with headers
text/plain 1.9k
"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/>
The synopsis error has been fixed in 3.01. Thanks for the report!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.