Using HTML Tidy from Perl

Chris Hardie <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
Good morning,

 

I would like to use HTML Tidy within a PERL script on a windows box. There is a HTML::Tidy module for PERL, but it doesn't work in a Windows environment.

 

On this page, there is a PERL snippet showing how to inspect exit codes from Tidy:

 

http://www.w3.org/People/Raggett/tidy/

 

Does anyone have a full example of how to call Tidy from within a PERL script, pass it options, and pass it markup before inspecting the exit codes? I'm pretty new to PERL, so a complete example would be extremely helpful.

 

Many thanks,

 

Chris

_________________________________________________________________
Share photos with friends on Windows Live Messenger
http://go.microsoft.com/?linkid=9650734
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.