Apache::Include - Utilities for mod_perl/mod_include integration
<!--#perl sub="Apache::Include" arg="/perl/ssi.pl" -->
The Apache::Include module provides a handler, making it simple to include Apache::Registry scripts with the mod_include perl directive.
Apache::Registry scripts can also be used in mod_include parsed documents using 'virtual include'.
The virtual method may be called to include the output of a given uri in your Perl scripts. Example:
virtual
use Apache::Include (); print "Content-type: text/html\n\n"; print "before include\n"; my $uri = "/perl/env.pl"; Apache::Include->virtual($uri); print "after include\n";
perl(1), mod_perl(3), mod_include
Doug MacEachern
To install mod_perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mod_perl
CPAN shell
perl -MCPAN -e shell install mod_perl
For more information on module installation, please visit the detailed CPAN module installation guide.