title: What does this Perl regex mean: m/(.*?):(.*?)$/g?
body: <p>I am editing a Perl file, but I don't understand this regexp comparison. Can someone please explain it to me?</p>
  
  <pre><code>if ($lines =~ m/(.*?):(.*?)$/g) { } .. 
  </code></pre>
  
  <p>What happens here? <code>$lines</code> is a line from a text file.</p>