http://qs321.pair.com?node_id=225

ord

See the current Perl documentation for ord.

Here is our local, out-dated (pre-5.6) version:


ord - find a character's numeric representation



ord EXPR

ord



Returns the numeric ascii value of the first character of EXPR. If EXPR is omitted, uses $_. For the reverse, see chr.