Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: -e file test won't follow symlinks?

by jethro (Monsignor)
on Jun 11, 2011 at 01:27 UTC ( [id://909238]=note: print w/replies, xml ) Need Help??


in reply to -e file test won't follow symlinks?

> mkdir a > ln -s a b > touch a/t > perl -e ' print "yes\n" if (-e "a/t");' yes > perl -e ' print "yes\n" if (-e "b/t");' yes

As you can see, in general it works. Are you sure you have the right path? Web address and filesystem path of any file can be totally different because of apaches ability to rewrite addresses

Did you check if you can test whether the directory exists? Or its parent directory and so on?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found