You appear to be saying that substr will return the ASCII value represented by the number contained in the selected byte(s) rather than just a sequence of 8 bits I, the computer program, can manipulate how I choose.
substr knows nothing about ASCII. substr returns a portion of the original string
the only way I know how to address that is to grab the byte containing the bit and then try to look inside that.
That is what you must do, But you didn't do that. You still had a string.
In reply to Re^3: I've muddled my bit and byte formats.
by ikegami
in thread I've muddled my bit and byte formats.
by murrayn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |