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

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


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter a1dd3 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |