in reply to Term::ANSIColor is awesome, but.. (need help)

Hello, in the case you choice to separate completely the coloring logic you can use this useful script. You'll find a nice implementation.

HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Term::ANSIColor is awesome, but.. (need help)
by mascip (Pilgrim) on Mar 31, 2014 at 14:33 UTC

    It also ended on CPAN, as cet.

    Because my aim is String variables with a color, I think I'll go for Term::ANSIColor::colored(). Thanks for sharing this module :-)