while () { chomp; if ($_ =~ /sequence/){ @headerseq = split('\n',$_);