html2perlstream - convert an HTML document to Perl code for that document
html2perlstream html2perlstream [options] - html2perlstream [options] file.html .. file.html
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
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
html2perlstream -w -d testin/test.html
You'll get fewer differences if you build the code with -w
.
PRE
environment.
To run this, you need:
HTML::Entities
HTML::Parser
$Id: html2perlstream,v 1.10 2001/08/17 00:50:00 eryq Exp $
Eryq, 11 Jan 1997,
Thanks (independently) to Tony Cebzanov and John Buckman for suggesting that I write a tool like this.