html2perlstream html2perlstream [-w] - html2perlstream [-w] file.html .. file.html
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
PRE
environment.
Thanks (independently) to Tony Cebzanov and John Buckman for suggesting that I write a tool like this.