my $data = '10.34.2.252'; printf("%02x%02x%02x%02x\n",split('\.', $data)); [download]
In reply to Re^5: left justify/pad hex value by cdarke in thread left justify/pad hex value by TheBigAmbulance