start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.103 opendir Chapter 3
Functions
Next: 3.2.105 pack
 

3.2.104 ord

ord 

EXPR

This function returns the numeric ASCII value of the first character of EXPR . If EXPR is omitted, it uses $_ . The return value is always unsigned. If you want a signed value, use unpack('c', EXPR ) . If you want all the characters of the string converted to a list of numbers, use unpack('C*', EXPR ) instead.


Previous: 3.2.103 opendir Programming Perl Next: 3.2.105 pack
3.2.103 opendir Book Index 3.2.105 pack