|
NAMEperl2html - generates highlighted html-files from Perl sourceSYNOPSISperl2html [options] [filename...]DESCRIPTIONThis manual page documents how to use perl2html. If no arguments are given on the command line of perl2html, it reads from stdin and writes to stdout.If invoked with filenames as arguments perl2html will write it's output into new files. Names of output files are generated by appending ".html" to the corresponding input filename. Installing as a CGI programperl2html can be installed as a CGI program and convert source files on the fly. In order to set this up for apache the webmaster has to add the two lines
AddType text/x-perl .pl .pm
Action text/x-perl /cgi-bin/perl2html
to the webserver configuration file. perl2html depends on the webserver properly setting environment variable PATH_TRANSLATED to the pathname of the source file. If perl2html has been compiled with option -DCOMPRESSION=1 then it will invoke gzip to compress the generated HTML before sending it to the requesting browser. Of course perl2html takes care to check if the browser accepts gzip encoding. OPTIONS
EXIT STATUSperl2html returns 0 on success, 1 if input files are not existing/readable, 2 if output files are not creatable/writable, 3 if invoked with illegal options and 4 if gzip cannot be invoked.AUTHORSFlorian Schintke <schintke@cs.tu-berlin.de>Martin Kammerhofer <mkamm@gmx.net> wrote the CGI feature. SEE ALSOc2html(1), java2html(1), pas2html(1). Visit the GSP FreeBSD Man Page Interface. |