http://www.perlmonks.org?node_id=829447


in reply to Re: Answer: How do I test whether or not a file is writable?
in thread How do I test whether or not a file is writable?

Yes, but -w would also return true if the file is actually a writeable directory