in reply to Re: Why does my Perl regex substitution for linebreak fail?
in thread Why does my Perl regex substitution for linebreak fail?

Yes, graff, you are right in observing that my regex contains two linebreaks - in contrast to what I actually intended to do. The curious thing is that the regex performs as expected when it should match one linebreak but not when it contains two linebreaks - in that case it appears to do NOTHING at all, although the file definitely does contain several consecutive linbreak-only lines. I am still puzzled and am starting to believe the issue is not due to the Perl-side of things but rather an I/O or even a Linux problem. Any conejectures on this one? Thanks again - Pat
  • Comment on Re^2: Why does my Perl regex substitution for linebreak fail?

Replies are listed 'Best First'.
Re^3: Why does my Perl regex substitution for linebreak fail?
by graff (Chancellor) on Mar 07, 2008 at 02:03 UTC
    I'm not sure I follow what you are describing there. The best thing to do is to present a minimal script and data set that still (even after what you've learned) produces results that you consider to be unexpected, and point out how it differs from what you would expect.