Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Subroutine to Search Subdirectories Failing at Filehandle Test

by ikegami (Pope)
on Apr 02, 2009 at 22:16 UTC ( #755138=note: print w/replies, xml ) Need Help??


in reply to SOLVED: Subroutine to Search Subdirectories Failing at Filehandle Test

readdir returns an unqualified file name, so when you use -d, you are looking in the current directory for a file that's in another directory.

You should consider using File::Find::Rule or similar.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2020-10-22 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?