September 2017
Beginner
402 pages
9h 52m
English
Integer values can be converted to the corresponding character. The correspondence is defined by the Unicode codepoint.
In the case of values below 256, it coincides with the ASCII table. Considering the following code snippet:
say 65.chr; # prints A
Higher values produce characters from the Unicode tables, as shown here:
say 8594.chr; # →
The same result can be obtained using the hexadecimal representation, as shown here:
say 0x2192.chr; # →
Read now
Unlock full access