ord got into Perl from Pascal, where it served the same purpose. C doesn't need it, because a char is an integer type (signed or unsigned). BASIC called it ASC.