in reply to How to extract the first elemnet from an integer type value ???
TIMTOWTDI $num = 100; print unpack('A', $num); [download]
Prasad