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

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.

Replies are listed 'Best First'.
Re^4: concatenating multiple lines without using . operator
by anonym (Acolyte) on Jun 13, 2012 at 14:30 UTC

    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.