#!/usr/bin/perl -wopen DATA,"result.txt";my %hash;local $/ = ">";#分割符while ( ) {chomp;my ($head,$seq) = split(/\n/,$_,2);next unless($head && $seq);$seq=~s/\s//g;my ($name)=$head=~/^(\S+)/;$hash{$name}=$seq;}close DATA;local $/ = "\n";open DABA, " ) {$name=~s/^>//g;($name)=$name=~/^(\S+)/;print SEQUENCE "$name\t$hash{$name}\n" if(exists $hash{$name});}close DABA;close SEQUENCE;