in reply to Pack uneven length hex

$string =~ s/(.)/sprintf("%02x",ord($1))/egs;