True, but I habitually have $\ set to \n, the snippet I posted prints 3 chars per line, not a single long line as both your's would do.
I didn't think of it being an optimisation either. Just when I want to print a substring of a string, I tend to think of substr.
In reply to Re^6: splitting a sequence using unpack
by BrowserUk
in thread splitting a sequence using unpack
by Rashmun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |