in reply to Re: Term::ANSIColor is awesome, but.. (need help) (overload and override)
in thread Term::ANSIColor is awesome, but.. (need help)
I had the very same idea but I was thinking of using a global variable. A class variable - or a class attribute - is much better. Thank you!
And a good thing is that it should also work for exceptions, if I also create a die_color() function.1. If I implement this, is it worth sharing it on CPAN?
2. Is it "bad practice"?
3. Is there a better way?
I really like the idea of a string declared with a color, but who behaves just like a normal string in the program. Only the display is colored.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Term::ANSIColor is awesome, but.. (need help) (overload and override)
by mascip (Pilgrim) on Mar 31, 2014 at 14:35 UTC | |
|
Re^3: Term::ANSIColor is awesome, but.. (need help) (overload and override)
by mascip (Pilgrim) on Apr 01, 2014 at 12:34 UTC | |
by tye (Sage) on Apr 01, 2014 at 13:44 UTC | |
by mascip (Pilgrim) on Apr 01, 2014 at 14:52 UTC |