"Fossies" - the Fresh Open Source Software Archive

Member "HTML-Stream-1.60/docs/html2perlstream.html" (20 Aug 2001, 4001 Bytes) of package /linux/www/old/HTML-Stream-1.60.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the HTML-Stream-1.60.tar.gz project site itself.

ZeeGee Software

html2perlstream 1.10


Top NAME

html2perlstream - convert an HTML document to Perl code for that document


Top SYNOPSIS

    html2perlstream
    html2perlstream [options] -
    html2perlstream [options] file.html .. file.html


Top DESCRIPTION

Takes an HTML file, and produces from it a Perl script that will generate that HTML using the HTML::Stream module.

For usage, just say:

    html2perlstream

The normal form is:

    html2perlstream [-options] [files]

Any named HTML input file file.html will cause output script file.html.pl to be generated. To read from the standard input, specify '-', like this:

    html2perlstream - < test.html

If reading from the standard input, the output Perl code goes to the standard output. So if you want to run it right away to see the output, just do this:

    html2perlstream - < test.html | perl


Top OPTIONS

-d
Automatically load and run the output Perl file, then do a diff on that and the input file (you must input from a file and output to a file in order to use this).
    html2perlstream -w -d testin/test.html

You'll get fewer differences if you build the code with -w.

-w
Try to generate code which will output all whitespace between tags verbatim. The default code only outputs whitespace if it is believed to be needed; e.g., if we are inside a PRE environment.


Top REQUIRES

To run this, you need:

   HTML::Entities
   HTML::Parser


Top VERSION

$Id: html2perlstream,v 1.10 2001/08/17 00:50:00 eryq Exp $


Top AUTHOR

Eryq, 11 Jan 1997, eryq@zeegee.com or thereabouts.

Thanks (independently) to Tony Cebzanov and John Buckman for suggesting that I write a tool like this.


Generated Mon Aug 20 16:34:04 2001 by cvu_pod2html