in reply to Multiple Line Regex Not Working

You are reading the file one line at a time so your regular expression will not work.

This should work:

while ( my $mls = <IN> ) { push @res, $mls if $mls =~ /^message=/ .. $mls =~ /^Message Id/; }

Replies are listed 'Best First'.
Re^2: Multiple Line Regex Not Working
by ImJustAFriend (Scribe) on Nov 16, 2018 at 12:33 UTC
    That worked like a champ!! Thank you!!