eyal_kle has asked for the wisdom of the Perl Monks concerning the following question:

I wrote a script in Perl. I gave a the user a message, and I want to emphasize one of the words. for example: print "Please fill in one value\n"; I want the user will see the word one with an underline, because it is important to fill in only one value and not more. Is there any command or function in Perl, that consider this problem?

Originally posted as a Categorized Question.

  • Comment on How do I print characters with underline or bold?

Replies are listed 'Best First'.
Re: How do I print characters with underline or bold?
by Monky Python (Scribe) on Aug 20, 2001 at 16:01 UTC
    if you use Term::ANSIColor you can do it like this:
    use Term::ANSIColor; print "Please fill in ".color("underline")."one".color("reset")." valu +e\n";
    but your terminal (i.e color-xterm) must support this too.

    MP

    Originally posted as a Categorized Answer.