in reply to How do I test whether or not a file is writable?
if (-w FILEHANDLE) { print "It's writeable by my effective uid or gid!\n"; } [download]