Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I test if I file exists without attaching a filehandle to it?

by ZZamboni (Curate)
on May 22, 2000 at 18:41 UTC ( [id://14213]=note: print w/replies, xml ) Need Help??


in reply to How do I test if I file exists without attaching a filehandle to it?

Note that most file test operators imply existence when they return a true value. So -r actually means "exists and is readable", and so on. So if you are interested not only on existence, but on some other specific condition of the file, you can simply use the appropriate operator and skip -e altogether.
  • Comment on Re: How do I test if I file exists without attaching a filehandle to it?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found