in reply to How do I check if another user can access a file?

You could always just do this:
if(! FILE, ">filename") { #dosomething } else { #dosomethingelse }