Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
[choroba]: Also, a thread here on PM mentioned that one of perlmonks.com or www.perlmonks.com should now work
[choroba]: Tidings
[Tanktalus]: So, I can log in, I can update last hour of cb, I can read the cb, I just can't post a message to it :(
[Tanktalus]: it's all the same process, and, IIRC, the same mechanized object.
[Tanktalus]: hmm, no, the mech object for posting isn't the same as reading, but it's the same as the logging in one.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2018-07-15 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (326 votes). Check out past polls.

    Notices?