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
In reply to Re: Getting the ascii number through perl's printf
by jettero
in thread Getting the ascii number through perl's printf
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |