You can also glob to get the names of files:
That will eliminate the dot directories from consideration, and the path to the files will be part of the names in the list. You might want to make print conditional on -f _ to eliminate directories from output.for (glob $dirtoread . '*') { my @stats = stat; # . . . }
After Compline,
Zaxo
In reply to Re: Why is Stat() Not Stating All Files?
by Zaxo
in thread Why is Stat() Not Stating All Files?
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |