in reply to Re: String to Byte array
in thread String to Byte array
What the OP probably needs, rather than an array of integers, is a binary string of unsigned chars derived from the hex string input.
That is done using pack, not unpack:
print pack 'H*', "A21B12C212AD12FF";; ó←↕┬↕¡↕
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: String to Byte array
by kpaxian25 (Novice) on Sep 20, 2013 at 21:11 UTC |