in reply to perlcritic --color option not working

Since you're having a problem with magenta, check that magenta is valid, then try printing it out:
#!/usr/bin/perl -l use strict; use warnings; use Term::ANSIColor qw(colorvalid); use Term::ANSIScreen qw/:color :constants/; my $valid = colorvalid ('magenta'); print "Color string is ", $valid ? "valid" : "invalid"; print MAGENTA . "Magenta" . RESET;

See:

Term::ANSIColor
Term::ANSIScreen

Additional tests:

ansicolor
colortest

To run ansicolor:
cat ansicolor
colortest prints out all 256 xterm colors.

Replies are listed 'Best First'.
Re^2: perlcritic --color option not working
by roadrider (Novice) on Dec 19, 2011 at 15:24 UTC
    All of the colors work. I've tested them independently of perlcritic.