in reply to Getting the ascii number through perl's printf

The number returned ord may not be an ASCII code.

The same pretty much applies to C's printf too.