The documentation for configuring mod_perl at http://perl.apache.org/docs/1.0/guide/config.html suggests having "PerlSendHeader On" inside the "Location /perl" directive, and then to add a "Files " directive to disable PerlSendHeader for NPH scripts.
This caused a bit of a problem, apparently caused by the fact that Location is merged AFTER Files, and overrides the former if the NPH is under the specified directory, effectively cancelling it out. The best ways to fix this that I came up with are either to: A) have a seperate Location aliased to the same physical location, without the PerlSendHeader On directive. This makes the Files directive unneccessary. B) Remove the PerlSendHeader directive from the Location block completely, and instead add a Directory block for the location being Aliased (e.g. /usr/local/apache/) with PerlSendHeader set in that. Then the Files directive will correctly override PerlSendHeader and NPH scripts function correctly. It's entirely possible (and even likely) that I missed something obvious and/or made some dumb error, so if there's a cleaner or more efficient way, or something I need to do to make the documented way work right, I'd be grateful for the info. Thanks. -C