[Bioperl-l] Printing strings without return
abrusan at mpil-ploen.mpg.de
Wed Mar 24 12:56:10 EST 2004
(Beginners question nr. x...)
I would like to ask how do I make one string from a Fasta file.
In other words, from:
I wrote a simple script:
open FILE, "input.txt";
open (OUT, ">$RESULTS.txt")or die "$0:ERROR: can't write report file\n";
if ($seq =~ />/)
print OUT "\n$seq";
print OUT "$seq";
The problem is that the lines in FASTA contain a RETURN at the end, so
the script doesn't change anything. Is there an option in perl to print
till the RETURN?
Thanking you in advance.
More information about the Bioperl-l