|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Answer: How can I split a string into chunks of size n bytes? |
| ( #74818=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > strings > How can I split a string into chunks of size n bytes? contributed by Masem
Edited by tye to add "s" on the end otherwise "." won't match newlines. Edited by chipmunk to change {0,$bytes} to {1,$bytes}; otherwise a null string is matched at the end.
|
|
||||||||||||||||||