in reply to Re: file writing permission
in thread file writing permission

open $fh, '>', "/tmp/blah" or die "File Open Problem: $!";

Whenever you die because of some error, always include both, the reason and the filename! This makes the error diagnosis and remedy much much faster in my experience:

open $fh, '>', "/tmp/blah" or die "File Open Problem with '/tmp/blah': + $!";