http://www.perlmonks.org?node_id=1043448


in reply to Good method to pass files throught perl/cgi script ?

You want the sendfile(2) system call, implemented in Apache httpd, lighttpd and nginx with the X-Sendfile header or similar.