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?

And in case you don't care whether the last group is complete,
my @groups = unpack "a$n" x ( ( length($string) / $n ) - 1 ) . "a*", $ +string;

Makeshifts last the longest.