FreeKB - Bold text (Term::ANSIColor)
Perl - 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 bd6f8 in the box below so that we can be sure you are a human.




Comments