Sadly you ignored half of my advice; it wasn't given without reason. Please reconsider your position.
You print can only be executed once because it's not inside a loop (should be inside the while loop). Proper indention would have made that obvious, and use strict would have told you that $fasta isn't in scope in the if (exists $fastahash{$fasta}) (if you would have declared it properly inside the while loop).
In reply to Re^5: fasta hash
by moritz
in thread fasta hash
by morio56
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |