Q:
In Basic I can use the ASC function to find the ASCII value of a
character. I can also use the CHR$ function to map a numeric value to a
character. For example letter = CHR$(65) would place the character A in
the variable 'letter'. number = ASC("A") would place the number 65 in the
variable 'number'. How would I do this in Perl?
A:
You have the same functions. They are called chr and ord.
Regards,
Peter
[ back to toc ]