in reply to that helped some but
in thread creating a file using a variable name
You could try creating a file in the directory without using perl. That would confirm the write issue
What is your Win32 platform - if it's NT/2000 you can have restrictive permissions on folders.