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

Re: search for folder

by atcroft (Abbot)
on Dec 23, 2017 at 17:34 UTC ( #1206112=note: print w/replies, xml ) Need Help??


in reply to search for folder

I admit I have not tried running your code, but I will make the following suggestions, which I strongly suspect will lead you to your answer:

  • when performing a file or directory operation, make sure you test the result, and
  • if it fails (especially while still under development) consider looking at the error variable $!.

I say this because I noticed that in your main routine you perform an opendir() and die() on error with a custom error message, ans in your godeep() routine you perform an opendir() and assume success.

Hope that helps.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-09-24 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (132 votes). Check out past polls.

    Notices?