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.
Back to
Seekers of Perl Wisdom