Using HTML Tidy from Perl

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

Received on Friday, 6 March 2009 15:03:55 UTC