note
kaif
<p>No, <code>glob</code> can return <code>.</code> and <code>..</code> and nothing in the documentation seems to promise otherwise (I searched [doc://glob], [doc://perlop], and [cpan://File::Glob]). However, <code>glob("*")</code> will <i>not</i> return any dot-files, including the directories, because it works similarly to shell wildcards. Here's an example of where it does, though:</p>
<code>
$ perl -le'$,=" ";print glob(".*")'
. .. .bash_history .bash_profile # and so on
</code>
469342
469352