Reference: ord (Perl in a Nutshell)

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: opendirChapter 5
Function Reference
Next: Reference: pack
 

ord

ord expr

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: Reference: opendirPerl in a NutshellNext: Reference: pack
Reference: opendirBook IndexReference: pack

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.