I know how to generate HTML code with CGI for mod-perl and Apache.
But I would like to send a file (image, zip,etc..) as if Apache was sending it directly, but only when my perl script checks if it is allowed. that is instead of
Is there a module, or a tutorial or a code snippet somewhere for sending a file?