title: Perl Regex in an 'if' statement [syntax]
body: <p>Up to now, if I wanted to group together several regex's within an <em>if</em> statement, I did it this way:</p>
  <pre><code>my $data =...
  if ($data =~ m/regex/ &amp;&amp; $data =~ m/secondregex/) {...}
  </code></pre>
  <p>Is there a shortcut (and I'm sure there is; it's Perl!) to avoid repeating $data, something like:</p>
  <pre><code>if ($data =~ m/regex/ &amp;&amp; m/secondregex/) {..}
  </code></pre>
  <p>??</p>