Home: General Discussions: General Questions:
hex code of a ASCII char



perl0user
Novice

Jan 15, 2009, 8:19 AM


Views: 4544
hex code of a ASCII char

Hi,
i'd like to know how to get hex code of an ASCII char.
Ex: 'a' => 61

cvv3@yahoo.com

Smile


gnix
Novice

Feb 19, 2009, 3:14 AM


Views: 4484
Re: [perl0user] hex code of a ASCII char


Code
perl -e 'print ord("A")'


gnix