in reply to Re: passing hex argument as stringin thread passing hex argument as string
sprintf("%x", $hexnum) [download]
(updated to correctly say sprintf instead of printf)