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

Short answer: no. Use ord instead.

The reason that doesn't work in perl is a culture problem. In C, all your "strings" are actually character arrays, and all your characters are really single byte integers. It's just not like that in perl. But print "lol \%d=", ord 'a', "\n" will work!

-Paul