I would need to get for example this:
COM7:
to look like this:
0x4F43
0x374D
0x003A
0x0000
To get this: 434F4D373A, which is sort of correct, but what would be most convinient way to arrange it to look like what I need, and print it to a file?$string = "COM7:"; $string =~ s/(.)/sprintf("%02X",ord($1))/seg; print "$string\n";
In reply to String to hex by jasal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |