Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2021-01-22 04:28 GMT
Find Nodes?
    Voting Booth?