in reply to printing hexadecimal without printf
perldoc -f hex?
The last line there points you thusly:
.... To present something as hex, look into "printf", "sprintf", or "unpack".
Or, of course, you could write your own, but reading the docs may be easier. :-)
|
|---|