Home >> perlfunctions >>Perl function: ordSyntax:ord EXPR ordReturns 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 $_ . Example:
#!/usr/bin/perl -w
print(ord('A'), "\n");
Output:
65 Perl functions
|
List of all perl functions Perl function : split Perl function: abs Perl function: chomp Perl function: chop Perl function: chr Perl function: crypt Perl function: eval Perl function: hex Perl function: lc Perl function: lcfirst Perl function: length Perl function: oct Perl function: shift
|