in reply to How do I test whether or not a file is writable?
if(-f $name ) { if(!(-w $name)) { print "File '$name' doesn't have write permission\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How do I test whether or not a file is writable?
by JavaFan (Canon) on Mar 18, 2010 at 14:34 UTC | |
by clinton (Priest) on Mar 18, 2010 at 16:41 UTC |