title: Debugging Perl Regular expression
body: <p>I am trying to debug a few regular expressions using:</p>
  <pre><code>perl -Mre=debug file.pl
  </code></pre>
  <p>The <em>file.pl</em> script has many regular expression. Some of them are repeated. Using the above syntax, all the regexes in <em>file.pl</em> are being debugged.</p>
  <p>Is there a way to tell Perl to debug only a particular regex in a script?</p>
  <p>I am familiar with the <a href="https://metacpan.org/pod/YAPE::Regex" rel="nofollow noreferrer">YAPE::Regex</a> module, but that is not what I require. So please don’t suggest to use that.</p>