in reply to (jeffa) Re: Illegal hexadecimal digit errorin thread Illegal hexadecimal digit error
my $hex_num = sprintf("0x%x", $dec_num);