in reply to copying files from cgi perl script is modifying target file permissions

use File::Copy "cp" is supposed to maintain permissions of the original file. If that isn't working, perhaps give cp -p a shot? The -p flag preserves mode/ownership/timestamps.