Our modperl scripts run as .pl on our Stronghold server. The conf file
has this added:

# Execute .pl scripts as mod_perl
<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Files>

The scripts run OK, but we are getting only one 'hit' recorded in the
access log files when the .pl script initially starts. After that,
subsequent calls to the .pl script do not appear in the access log file.

If I add a  use Apache::Constants;  to the .pl script, the access log
appears to increment properly.

Is this the proper use of the Constants.pm? Does the .pl script still
run as a modperl script in this case? Is there any additional processing
overhead involved?

Sorry if this question has been answered previously. I could not find
anything on it anywhere.

Thanks for your help.

Jim Goodwin

Reply via email to