You've probably got some hidden returns in there as well as newlines, so your newlines are not adjacent. That's the most common problem with this approach,
and has been dealt with in the past by other postings here.
-- Randal L. Schwartz, Perl hacker