Mirco Wahab said:
I don't understand the purpose of the chomp,
It is to remove the trailing ">", which is not wanted. In FASTA sequence
files, ">" is start of the next record, not the end of the current one.
maybe it needs to be in front of the if():
I don't see how that would make a difference. If the if fails, nothing
happens anyway. If the if succeeds, it makes no difference if the chomp
is done before or after.
Ah, but if the file starts out with the first character of ">", (which it
probably does) then the first record contains nothing but $/. By not
chomping the conditional is true you litter your file system with invisible
(on linux) empty files named .fsa. If you do chomp, the conditional is
false and nothing happens, which is what one wants. So yes, the chomp
should be before the if.
Xho
--
--------------------
http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.