go ahead... be a heretic | |
PerlMonks |
Re: Answer: How do I test whether or not a file is writable?by JavaFan (Canon) |
on Mar 18, 2010 at 14:34 UTC ( [id://829406]=note: print w/replies, xml ) | Need Help?? |
There's no point testing for both -f and -w. If the file doesn't exists (or if its existence cannot be determined), -w will return false. And if -w returns true, the file exists.
In Section
Seekers of Perl Wisdom
|
|