I need to send two bytes to a daemon to let it know the message length, the bytes have to bytes and not an ascii representation of bytes.
For example, I want 00001001, not 00111001.
unpack("B*", int(length($msg)/256)) yeilds the latter, not the former, how do I force the case?
sigh.
In reply to string, or integer? by Ryszard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |