in reply to File::Wrap and Fasta format
... print $fh ">$description\n"; print $fh "$_\n" foreach ($seq =~ /.{1,50}/g); ...
The thing to watch here is that it's destructive - $seq will be empty when it finishes.... print $fh ">$description\n"; print $fh substr($seq,0,50,'') . "\n" while ($seq); ...
|
|---|