Think about Loose Coupling | |
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?? |
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.
In Section
Seekers of Perl Wisdom
|
|