in reply to Creating a file in temp folder

Looks fine to me too, although I suspect you don't need '+>' mode, but just '>'. Read the following tutorial that covers modes for opening files: perlfile.

Do you get any errors when calling open or print?