But since I'm here anyway, I've got a random guess: something else is setting $/ in your program, messing up <> and causing you to get multiple lines in the (oddly named) $newline variable. I don't see how else that line could print two lines of text - but I do note that the code you posted isn't what produced the output you show... Maybe something changed aside from commenting some stuff out?
-sam
In reply to Re: Regexp and newlines, what am I missing?
by samtregar
in thread Regexp and newlines, what am I missing?
by mdunnbass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |