Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by sedusedan (Monk)
on Oct 04, 2012 at 06:56 UTC ( #997192=note: print w/ replies, xml ) Need Help??


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

-e follows symlinks, because it does a stat(), not an lstat(). If the symlink target does not exist or is inaccessible, -e will report false even though the symlink itself exists.

If that is not what you want, you might want to try file_exists() in SHARYANTO::File::Util. Or you can implement the logic itself, by using -l instead of -e.


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (17)
As of 2015-07-02 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls