title: Can I skip a whole file with the <> operator?
body: <p>The following Perl code has an obvious inefficiency; </p>
  
  <pre><code>while (&lt;&gt;)
  {
  if ($ARGV =~ /\d+\.\d+\.\d+/) {next;}
  ... or do something useful
  }
  </code></pre>
  
  <p>The code will step through every line of the file we don't want. </p>
  
  <p>On the size of files this particular script is running on this is unlikely to make a noticeable difference, but for the sake of learning; How can I junk the whole file &lt;> is working and move to the next one?</p>
  
  <p>The purpose of this is because the sever this script runs on stores old versions of apps with the version number in the file name, I'm only interested in the current version.</p>