⭐ in reply to How can I split a string into chunks of size n bytes?
push @bits, substr $scalar, 0, $bytes, '' while length $scalar;
In Section
Seekers of Perl Wisdom
⭐ in reply to How can I split a string into chunks of size n bytes?
push @bits, substr $scalar, 0, $bytes, '' while length $scalar;