my @arr = split(/.{120}/, $string);
my @array = $string =~ /(.{1,120})/g;
1234
my $length = 3;my $data = 'aaabbbcccdddeeefffggghhh';my @chunks = unpack("(A$length)*", $data);print "$_\n" for @chunks;