Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: concatenating multiple lines without using . operator

by anonym (Acolyte)
on Jun 13, 2012 at 13:38 UTC ( [id://975980]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://975980]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found