in reply to Re: Re: string length problems
in thread string length problems

for (my $pos = $window; $pos <= length($seq); $pos += $window+1) { substr($seq, $pos, 0, "\n"); }
is the least ugly I could come up with.