Oh - turn on warnings. You'll have found you're not doing what you think you're doing.
In reply to Re^3: How to test for a new line by dragonchild in thread How to test for a new line by BadMojo