in reply to Writing to a File

Ran the code on my WinXP machine using ActiveState perl 5.8.8 and it worked fine.

When you are checking whether it worked are you opening c:\temp\testtmp.tmp in a text editor, or reading it with a perl script?