in reply to Split a string into items of constant length
my $data = 'a(b)cd(e)f'; my @chunks = $data =~ /.{5}/g; print "@chunks"; [download]
Change the value in the regex for a different number of chars.