perlasciiextended-ascii

How can I display Extended ASCII Codes characters in Perl?


alt text

How to display 192 character symbol ( └ ) in perl ?


Solution

  • What you want is to be able to print unicode, and the answer is in perldoc perluniintro.

    You can use \x{nnnn} where n is the hex identifier, or you can do \N{...} with the name:

    perl -E 'say "\x{2514}"; use charnames; say "\N{BOX DRAWINGS LIGHT UP AND RIGHT}"'