note
JadeNB
Your code doesn't compile as presented; I assume that you mean to have two <c>}</c> at the end of the <c>while</c> loop, and that the contents after <c>></c> is what's in <c>$IN2</c>? In this case, the problem is that the IRS <c>$/</c> is set to be a newline, so the string is read as 3 separate lines, rather than 1 big one as you'd hope. You could ‘slurp’ by using <c>local $/</c>, if that's the effect that you want.
808922
808922