in reply to RE: Don't use opendir
in thread thanks, i'm new. rtfm right? :)

Absolutely. I was seriously burned once on an older Perl with scripts that used globbing which began returning nothing when the directory got too many files. *THAT* was a fun one to debug, and I am not a great fan of rewriting production jobs on the fly. :-(

Even with File::Glob I would avoid globbing if there was going to be any possibilities of filenames with spaces or wildcards in them. The semantics of readdir etc are safe with meta-characters. The sematics of globbing are very troublesome.