Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: -f not identifying .txt files

by dHarry (Abbot)
on Sep 24, 2010 at 11:36 UTC ( #861789=note: print w/replies, xml ) Need Help??


in reply to Re^2: -f not identifying .txt files
in thread -f not identifying .txt files

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://861789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2018-11-18 07:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (205 votes). Check out past polls.

    Notices?