while (<IFILE>) { ... elsif ($_ =~ /^(\w*)$/) { @sequence = $_; } ... foreach my $sequence(@sequence) { print OFILE1 "$headerseq\n$sequence\n"; } ... }
I'm not familiar with processing FASTA sequence data, but a couple of things strike me in the code fragment originally posted by anonym:
In reply to Re: How to match the sequences with headers
by AnomalousMonk
in thread How to match the sequences with headers
by anonym
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |