Keep It Simple, Stupid | |
PerlMonks |
Re: How can I split a string into chunks of size n bytes?by Masem (Monsignor) |
on Apr 23, 2001 at 22:37 UTC ( [id://74818]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|