I'm not sure where line 17 is but my %seqs= ''; is wrong because a hash is not a string. I think you meant to say my %seqs = (); Also, there's no reason to assign empty values to newly declared variables so you can simply say my %seqs; instead. Actually, I'd just pull all those forward declarations together in one line like so...
my (@file_data, %seqs, $query, $dna);
Of course, this is Perl, so you can declare variables when you use them, but I don't want to overwhelm you so I'll leave it here for now.
When you get errors like that, look at the line the error message says and try to see what's wrong. When you show code, please mark which line is 17 (well, the line with the error) because many of us can spot errors without downloading and running the code.
|