ord function

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