in reply to printing hexadecimal without printf

Have you read
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. :-)

  • Comment on Re: printing hexadecimal without printf