So what is the recommended way to list all entries in a directory?Then the answer is readdir. I cannot really imagining something thinking there's a different answer (which was why I initially didn't assume you only wanted the top most directory).
...
Apparently it was not clear from my question but I am only interested in the top most directory.
A relevant quote from perlport:
Don’t count on filename globbing. Use "opendir", "readdir", and "closedir" instead.You also may want to read perlport and take its notes regarding readdir in combination with VMS and Acorn RISC OS into account.
In reply to Re: How to list all the things in a directory?
by JavaFan
in thread How to list all the things in a directory?
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |