Because the b7 unpack template that drops the most significant bit of the converted character also produces the binary digits in little-endian order. The OPer wants them in big-endian (i.e., most significant binary digit on the left) order, hence the 7-character sub-string must be reversed before being appended to the $out string. Try it without reverse and see what you get.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Convert ASCII string to 7-bit binary string
by AnomalousMonk
in thread Convert ASCII string to 7-bit binary string
by Pascal666
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |