ord - find a character's numeric representation

- NAME
- SYNOPSIS
- DESCRIPTION

# NAME

ord - find a character's numeric representation

# SYNOPSIS

ord EXPR

ord

# DESCRIPTION

Returns the numeric (the native 8-bit encoding, like ASCII or EBCDIC, or Unicode) value of the first character of EXPR. If EXPR is omitted, uses `$_`.

For the reverse, see chr in the perlfunc manpage. See the perlunicode manpage and the encoding manpage for more about Unicode.

ord - find a character's numeric representation