chr
chr in Perl returns the character represented by that NUMBER in the character set.
examples/chr.pl
use strict; use warnings; use 5.010; binmode(STDOUT, 'utf8'); # To avoide the 'Wide character in say' warning. say chr(65); # A say chr(1488); # א (Hebrew Aleph) say chr(1634); # ٢ (Arabic 2) say chr(197); # Å say chr(195); # Ã say chr(215); # × say chr(217); # Ù
See also the ord function that does the opposite.
Published on 2021-03-17
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post