in reply to Need Raw Binary Output
See pack:
print pack('N',123456789); # unsigned, big-endian # output (hex): 07 5b cd 15 print pack('V',123456789); # unsigned, little-endian # output (hex): 15 cd 5b 07
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need Raw Binary Output
by Anonymous Monk on Dec 06, 2016 at 19:49 UTC |