Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I display Extended ASCII Codes characters in Perl?

alt text

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

like image 718
Tree Avatar asked Sep 20 '10 15:09

Tree


1 Answers

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}"'
like image 136
Daenyth Avatar answered Oct 10 '22 05:10

Daenyth