in reply to
use of uninitialised value
My guess is that you are getting that warning from not declaring a scalar that is being used. Perhaps you did not declare $upload or $filename. This would explain both the warning, and the problem opening the file.
I have absolutely zero preference
Results (144 votes),