while (readdir (DIR)) {
does not magically assign to $_, so for a quick fix you could change it to
while ($_ = readdir (DIR)) {
You'll be much closer to what you want.
I guess you never saw any of your debug messages that indicated that no files were ever tested in your loop. ;-)
--
I'd like to be able to assign to an luser
In reply to Re: Cleaning up by age
by Albannach
in thread Cleaning up by age
by brianarn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |