I'm not sure of your desired output. Are you trying to catch the last line containing Sbject? If you would post the desired output for the provided example input file, I'll try to find and post a solution.
Anyway, it's very likely that the $_ variable you are parsing contains one line at a time, and searching for multiple \n doesn't work.
Regards,In reply to Re: Parsing a file
by 1Nf3
in thread Parsing a file
by cowboyrocks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |