You are reading the file line by line, but try matching across lines in your regular expression. That can't work. Either read the whole file into memory and then try the while loop or set the Record Separator $/ to Message dump:, or use the .. operator:
while (<>) { print if ! /^Message dump:$/) };
In reply to Re^3: matching everything between over two lines
by Corion
in thread matching everything between over two lines
by minixman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |