#!/usr/bin/perl -w use strict; my $i = 0; while(<DATA>){ s/\s//g; if (/^>/) { print "\n" if $i; print ++$i, " : "; next; } chomp; print; } print "\n";
In reply to Re: How to avoid using array in concatenating string of multiple lines
by snowcrash
in thread How to avoid using array in concatenating string of multiple lines OR How To Read FASTA
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |