if(-f $name ) { if(!(-w $name)) { print "File '$name' doesn't have write permission\n"; } }
Originally posted as a Categorized Answer.
In reply to Re: How do I test whether or not a file is writable?
by kiruthika.bkite
in thread How do I test whether or not a file is writable?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |