in reply to moving files

What about using File::Copy? Assuming the web server has write permission in the directory where you want to place the file File::Copy should do what you want.