in reply to How do I convert from decimal to hexidecimal?

sprintf "%x", $num;

Replies are listed 'Best First'.