Your perl script is probably running in the security context of IUSR_YOURMACHINE.
When you create the file manually, you are probably using your own personal login credentials, which are probably not the same as IUSR_...
MSDN has useful info here.
In reply to Re: Windows permissions when creating a file
by EdwardG
in thread Windows permissions when creating a file
by qadwjoh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |