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

I think that this is a simple question. How do I display an apostrophe "'" in my usage output? I have been reading about E<>, but I don't seem to be doing something right.

I have tried E<'>, E<apos> and this doesn't work. I get a strange a character.

After all this is over, all that will really have mattered is how we treated each other.
  • Comment on How to display an apostrophe in pod2usage help output.

Replies are listed 'Best First'.
Re: How to display an apostrophe in pod2usage help output.
by swampyankee (Parson) on Sep 16, 2007 at 15:25 UTC

    Try using the html entity for apostrophe, which is either &apos; or &#39;.

    As an aside, &apos; may not work under IE; see HTML Entities.


    emc

    Information about American English usage here and here.

    Any Northeastern US area jobs? I'm currently unemployed.

      So I am talking about the pod2usage output to the a terminal window. The apostrophes below show up as a strange 'a'.

      =cut =head1 EXAMPLES The following is an example of this script: perlsql -query /home/dmathis/cand_query -to 'dbmathis@test.com' -filename 'filename.xls' -database schema -dbserver db13 -node Res_Score -xmlcol RawXML -header or perlsql -query /home/dmathis/cand_query -to 'david@perl.com' -filename 'filename.xls' -database test -dbserver db13 -node Scorebourd+score -xmlcol RawXML -header or perlsql -query ora_query -to 'anders@jungle.org' -dbserver oraserver -dbuser orauser -dbpassword somepass -oracle -delimiter '\t'. =cut
      After all this is over, all that will really have mattered is how we treated each other.
Re: How to display an apostrophe in pod2usage help output.
by tinita (Parson) on Sep 16, 2007 at 16:31 UTC
    How do I display an apostrophe "'" in my usage output?
    which apostrophe? from which charset? maybe you are using one that the terminal you're running it in cannot understand because of a different locale? the pod you pasted works fine for me.
      So I am confused. The apostrophe displays fine in my regulare perl output and in emacs or vi. I am just having issues with pod2usage.

      I will do some more google searching.

      After all this is over, all that will really have mattered is how we treated each other.
Re: How to display an apostrophe in pod2usage help output.
by apl (Monsignor) on Sep 16, 2007 at 15:19 UTC
    I'm not certain what you mean by E<>. Have you tried "'" or "\'"?

    print "How about 'this'?\n" works just fine.

    Later: Sorry, after a little research I realize this was a stupid response...