in reply to importing functions with "PerlModule" Apache directive
This is really not what PerlModule is for, but depending on how your script is structured, it should be doable.
Find your modules directory - something like:
/usr/lib/perl5/site_perl/5.14.2 (or whatever Perl version you're using)
And then create a file called ApacheAutoload.pm. In that file, include:
package main; # this is important use DBI; use CGI qw(:cgi -compile -utf8); # ... and so on
Then in your Apache config file, do this:
PerlModule ApacheAutoload
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: importing functions with "PerlModule" Apache directive
by Anonymous Monk on May 09, 2012 at 14:38 UTC | |
|
Re^2: importing functions with "PerlModule" Apache directive
by acanfora (Novice) on May 09, 2012 at 14:38 UTC | |
by tobyink (Canon) on May 09, 2012 at 15:05 UTC | |
by Anonymous Monk on May 09, 2012 at 15:29 UTC |