Computer science: Perl programming: chr() function
Tutoring computer science, character operations with ASCII surface. The tutor mentions Perl’s chr() function.
The common English characters one might imagine all have ASCII codes. Tab is 9, Newline is 10, Space is 32, and from 33 to 126 are the visible symbols like a, A, 9, (, etc.
Perl chr()will print the ASCII character for the number it’s given. For intstance,
$the_char=chr(72);
print "$the_char";
will output the letter H.
Source:
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.
Leave a Reply
You must be logged in to post a comment.