in reply to Re^3: How to match and transform a multiline pattern?
in thread How to match and transform a multiline pattern?

Agreed - 2000 lines is not large at all. I just sucked in the whole file and was able to convert it successfully using $a =~ s/p/r/g;.
Thanks so much.
  • Comment on Re^4: How to match and transform a multiline pattern?

Replies are listed 'Best First'.
Re^5: How to match and transform a multiline pattern?
by apl (Monsignor) on Apr 20, 2007 at 20:00 UTC
    Congratulations. And here I was about to post this boring screed on a Finite State Automata that would allow you to read one line at a time while learning if you had a four-line statement that was interesting ... 8-)