I have an application where I use readdir to iterate over the files in a directory handle opened by opendir. Perldoc gives the following explanation of how the function works:
Returns the next directory entry for a directory opened by "opendir".
However, it does not specify how "next" is determined. From my own quick testing, it appears that the order is consistent, but I have not been able to discern how the order is derived and it does not appear to be documented anywhere.
Do any of you know how the order is determined?
In reply to Order of files returned by readdir by jpfarmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |