in reply to perl - apache - winxp tmp dir???

The webserver is most likely to run as a different user than you and as such there is a fair chance that indeed it uses different temporary directories or (even more likely) that the temporary directory you want to use cannot be accessed by the webserver.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James