perl -e 'printf "%x\n", 42' [download]
there's also sprintf and pack. 'perldoc -f sprintf' will get you the docs.
In reply to Re: TO hexadecimal by zengargoyle in thread TO hexadecimal by Anonymous Monk