Perl (Scripting) - Bold text (Term::ANSIColor)

by
Jeremy Canfield |
Updated: March 09 2020
| Perl (Scripting) articles
To display bold text in Perl, use the Term::ANSIColor module.
use Term::ANSIColor;
You can then make certain text bold.
print "This is not bold";
print color ('bold');
print "This is bold";
print color ('reset');
This will produce the following results:
This is not bold
This is bold
Did you find this article helpful?
If so, consider buying me a coffee over at