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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


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