in reply to Re^3: Printing the variable makes the next match code work. Why?
in thread Printing the variable makes the next match code work. Why?

Thank You. I see your code is different in a significant way. I found that if I change the print line from ...
print "$1 = the line"; ##### to #### print "$1 = the \n line";
So that the print statement includes a '\n' character, it works! And without the print line I previously thought I needed to make it work.