title: Perl multiple line matching while reading from file, line by line
body: <p>Lets say I open a file like this:</p>
  
  <pre><code>#!/usr/bin/perl
  
  open FILE, "8882099";
  while ($line = &lt;FILE&gt;) {
    if ($line =~ /accepted by(.*?)\./s) {
      print "accepted by: $1";
    }
  }
  </code></pre>
  
  <p>the problem is the regex is working, but since the file is read line by line, how should I go about matching this string which continues on to a new line?</p>
  
  <p>Thank you</p>