http://qs321.pair.com?node_id=469419


in reply to Re^3: No. files in folder
in thread No. files in folder

No, glob can return . and .. and nothing in the documentation seems to promise otherwise (I searched glob, perlop, and File::Glob). However, glob("*") will not return any dot-files, including the directories, because it works similarly to shell wildcards. Here's an example of where it does, though:

$ perl -le'$,=" ";print glob(".*")' . .. .bash_history .bash_profile # and so on