my @octet = split /\./, $dec; my $hex = sprintf +(join ".", ("%02X") x @octet), @octet; [download]
Makeshifts last the longest.
In reply to Re: decimal -> hex by Aristotle in thread decimal -> hex by FireBird34