Apache::PrettyPerl - Apache mod_perl PerlHandler for nicer output perl files in the client's browser.
You must be using mod_perl. See http://perl.apache.org for details. For the correct work your apache configuration would contain apache directives look like these:
# in httpd.conf (or any other apache configuration file) AddType text/html .pl .pm <Files ~ "\.p[lm]$"> SetHandler perl-script PerlHandler Apache::PerttyPerl PerlSetVar TabSize 8 # optional PerlSetVar AllowDownload On # optional </Files>
There is only example of apache configuration. Most probably you should like place <Files> directive inside <Directory> directive. Otherwise will be handled all perl files, including CGI and mod_perl scripts.
This is apache handler that converts perl files on the fly into syntax highlighted HTML. So your perl scripts/modules will be look nicer. Also possibly download original perl file (without syntax highlight).
All features of the this PerlHandler, will be setting in the apache confihuration files. For this you can use PerlSetVar apache directive. For example:
PerlSetVar TabSize 8 # inside <Files>, <Location>, ... # apache directives
Setting size of the tab (\t) symbol. Default is 8.
If it setting to On at the end of the page will be displayed Download link, which allow download original file. Default is Off.
perl(1), mod_perl(3), Apache(3)
Roman Kosenko
E-mail: ra@amk.lg.ua
Home page: http://amk.lg.ua/~ra/PrettyPerl
Copyright (c) 2000 Roman Kosenko. All rights reserved. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Apache::PrettyPerl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::PrettyPerl
CPAN shell
perl -MCPAN -e shell install Apache::PrettyPerl
For more information on module installation, please visit the detailed CPAN module installation guide.