in reply to Re: decimal -> hex
in thread decimal -> hex

I think you've got your nybble order mixed up...
print join(".",unpack("H2H2H2H2",pack("c4",split /\./,$ip)));

-Blake