Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: directory exists

by jweed (Chaplain)
on Jun 03, 2005 at 00:08 UTC ( #463064=note: print w/replies, xml ) Need Help??


in reply to directory exists

What is your expected behavior? It seems to work for me, though I would make the condition:
... if (-e $mydir && -d _){ ...
to explicitly test that the file is a directory.



Code is (almost) always untested.
http://www.justicepoetic.net/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2018-10-19 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (110 votes). Check out past polls.

    Notices?