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

Can anybody guide me how to print angstrom Å symbol in Perl?

Replies are listed 'Best First'.
Re: angstrom symbol in Perl?
by BrowserUk (Patriarch) on Apr 06, 2010 at 23:47 UTC

    Print to where? Console, GUI, web?

    • To a (Windows) console: print chr(143);
    • To a (Windows) GUI: print chr(194);
    • In an html document: print 'Å

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re: angstrom symbol in Perl?
by james2vegas (Chaplain) on Apr 07, 2010 at 00:03 UTC
    something like:
    #!/usr/bin/perl use charnames ':full'; # s/STDOUT/$filehandle/g binmode STDOUT, ":utf8"; print STDOUT "\N{ANGSTROM SIGN}";

Re: angstrom symbol in Perl?
by Anonymous Monk on Apr 07, 2010 at 00:18 UTC