in reply to Re: concatenating multiple lines without using . operator
in thread concatenating multiple lines without using . operator

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: concatenating multiple lines without using . operator
by Corion (Patriarch) on Jun 13, 2012 at 13:40 UTC

    No. The . operator is concatenating the strings of your input. It's just that your input lines still contain newlines, and these are also contained in the result string.

    Again, I recommend you to revise your regular expression, to explain what it should do, and to compare that against the documentation I already linked to. You will find that your regular expression does likely not do what you think it does.

      Hey, Thanks.That means if i print the hash value outside the while loop, it would print the concatenated sequence (a single line) right. Hmm.

Re^3: concatenating multiple lines without using . operator
by Cristoforo (Curate) on Jun 14, 2012 at 01:10 UTC
    Are these fasta files? If they are, what do want to get from them or do with them?

    Chris