The input string contains arbiitrary bytes (say, read from a file). $buf = chr(1) x 1e6 is simply a placeholder.
In reply to Re^2: Interleaving bytes in a string quickly
by BrowserUk
in thread Interleaving bytes in a string quickly
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |