in reply to Perl text file writing

Where are you looking for the file? Maybe you need to specify the full path? I have no idea what IIS uses as a default cwd.

Also, you really should be checking the return value on those opens:

  open(...) or die "Unable to open: $!";

That will save you a lot of head-scratching later, although it's probably not going to help you right now since it seems the script is running to completion.

-sam