title: What is the use `-d` in Perl script?
body: <p>What does the <code>-d</code> in the following piece of code:</p>
  
  <pre><code>foreach my $filename (@files) {
          my $filepath = $dir.$filename;
          next if -d $filepath;
          function1();
  }
  </code></pre>