in reply to HELP-MULTILINE PATTERN MATCHING
If what I've said here isn't helpful, you really need to settle in with a good Perl tutorial and learn some of this stuff. I recommend Learning Perl as a good start, or here: http://www.perl.com/pub/a/2000/10/begperl1.html.
I am concerned that you're just hoping for a solution. If you read around on Perlmonks you'll find that we seldom just write someone a program. If they post at least a "Here's the code I tried, but this part doesn't work", yes, very often there'll be a "here's a way to solve that" with a partial or even complete solution.
But a plain old "write this for me" smacks of "I can't be bothered to do this myself, I'll take advantage of these people's willingness to write code for free" at best, and seems dishonest at worst - be sure that if you "solve" a problem by getting an answer from Perlmonks, sooner or later it will catch up with you. Managers know how to do web searches too, and the good ones will. (A quick search on strings from your example file input turns up this node, for instance.)
|
|---|