in reply to Perl reading in a file and getting a string in between two strings on different lines

What output do you expect to see from this input?
'Twas brillig, and the slithy toves SEARCH Did gyre and gimble in the wabe SEARCH All mimsy were the borogoves TEST And the mome raths outgrabe
Reasonable that you might want to see just the borogoves, but the solutions people have given will print the wabe as well.
  • Comment on Re: Perl reading in a file and getting a string in between two strings on different lines
  • Download Code