|
|
| There's more than one way to do things | |
| PerlMonks |
Term::ANSIColor and printf - easy way to use them togetherby bdalzell (Sexton) |
| on Dec 03, 2012 at 21:15 UTC ( #1006953=perlquestion: print w/ replies, xml ) | Need Help?? |
|
bdalzell has asked for the
wisdom of the Perl Monks concerning the following question:
Is there an easy way to use Term::ANSIColor and printf together? I want to output a formatted response to the terminal. printf works fine for this project but the text is monochrome. I would like to be able to highlight some of the text within a line of formatted output This works but is not elegant:
This is just an example. In the actual program variables are being used in the black text areas such as : $thisdog{'name'}
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||