You are viewing the version of this documentation from Perl 5.6.0. View the latest version
ord EXPR
ord

Returns the numeric (ASCII or Unicode) value of the first character of EXPR. If EXPR is omitted, uses $_. For the reverse, see "chr". See utf8 for more about Unicode.