ChuckularOne has asked for the wisdom of the Perl Monks concerning the following question:
The -w test will do:
This code was credited to chromatic by the author. --Ed.if (-w FILEHANDLE) { print "It's writeable by my effective uid or gid!\n"; }
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I test if a file has write permission?
by fx (Pilgrim) on Dec 19, 2003 at 23:35 UTC | |
by exussum0 (Vicar) on Dec 20, 2003 at 20:58 UTC |
Back to
Seekers of Perl Wisdom