- find its length
- convert the length into 2 hex bytes.
I need to convert the length (12) to the string "\x00\x0c"my $string = "39860000NO00"; my $length = length($string);
In reply to Convert to Hexadecimal by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |