in reply to print Unicode characters

Following moritz's advice, I used charnames like this. I hope it gets you going.
#!/usr/bin/perl use strict; use charnames ':full'; print "\N{LATIN CAPITAL LETTER A}\n", "\N{LATIN SMALL LETTER A}\n";

Replies are listed 'Best First'.
Re^2: print Unicode characters
by kalyanrajsista (Scribe) on Jun 14, 2010 at 09:13 UTC

    Thanks for the inputs and suggest me if I'm going in right way...

    #!/usr/bin/perl use strict; use charnames ':full'; print "\N{LATIN CAPITAL LETTER N}", "\N{DEGREE SIGN}\n";
      I'm not quite sure what you mean by "degree sign". I kept getting a "wide character in print" warning. However, I think that this is what you're after:
      #!/usr/bin/perl use strict; use encoding 'utf8'; use charnames ':full'; print "\N{LATIN CAPITAL LETTER N WITH DOT ABOVE}\n";
        I kept getting a "wide character in print" warning.

        Add this to your script to get rid of the warning:

        binmode STDOUT, ":utf8";