Apache::MakeCapital - convert server output to uppercase
In the conf/access.conf file of your Apache installation, add lines like
<Files *.html> SetHandler perl-script PerlHandler Apache::OutputChain Apache::MakeCapital Apache::PassHtml </Files>
This is a module to show the use of module Apache::OutputChain. The function handler simply inserts this module into the chain, calling
Apache::OutputChain::handler($r, __PACKAGE__);
This is the initialization stage. The second parameter in the call to Apache::OutputChain::handler must be a name of this class, so that Apache::OutputChain will know, whom to put into the chain.
The package also must define function PRINT, that will be called in the chain. In this example, it capitalized all output being sent. It will mess up the links (A HREF's) so is really just for illustration ;-)
(c) 1997--1998 Jan Pazdziora, adelton@fi.muni.cz, http://www.fi.muni.cz/~adelton/ at Faculty of Informatics, Masaryk University, Brno, Czech Republic
To install Apache::OutputChain, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::OutputChain
CPAN shell
perl -MCPAN -e shell install Apache::OutputChain
For more information on module installation, please visit the detailed CPAN module installation guide.