in reply to Re: How can I split a string into chunks of size n bytes?in thread How can I split a string into chunks of size n bytes?
my @groups = unpack "a$n" x ( ( length($string) / $n ) - 1 ) . "a*", $ +string; [download]
Makeshifts last the longest.