Welcome to the Monastery | |
PerlMonks |
Re^3: -f not identifying .txt filesby dHarry (Abbot) |
on Sep 24, 2010 at 11:36 UTC ( [id://861789]=note: print w/replies, xml ) | Need Help?? |
I think the solution has already been suggested, I would just like to point you to the documentation (readdir): If you're planning to filetest the return values out of a readdir, you'd better prepend the directory in question. Otherwise, because we didn't chdir there, it would have been testing the wrong file. Harry
In Section
Seekers of Perl Wisdom
|
|