I'm trying to use pack to create an ISO8583 set of bit flags. But, I'm running into a problem whenever the most significant bit is set. For instance, pack( "B8", "10000000" ) yields "\302 \200" rather than "\200", pack( "B8", "11000000" ) yields "\303 \200" rather than "\300". Is this a bug in the pack routine or am I missing something in the format string?
Any help would be appreciated.
In reply to Help with pack error by taack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |