Perl:Convert a String to Chars

From Progzoo
Jump to: navigation, search

Perl does not have the char type, just numbers and string.

You can convert to and from ASCII values and Strings using ord and chr

You can treat a string as an array of characters

Show character number 2 (the third character) and the ASCII value of this.

[Font] [Default] [Show] [Resize] [History] [Profile]