[Charlotte.PM] Tidying HTML output / Temp Files

Cory Foy Cory.Foy at mobilehwy.com
Thu Apr 21 14:08:50 PDT 2005


William McKee wrote:
> That looks like it would work. However, you may prefer to use HTML::Tidy
> which would not require an external file to do the cleanup (from my
> reading of the POD). The qestion would then be can XML::XPath work with
> a string or does it require a file. I'd strongly suggest using either
> the File::Temp module that Diona suggested or IO::File which has a
> tmpnam function that can create a temporary file.

Ok, thanks. I think I might have tried HTML::Tidy, but now I'm not sure. 
XPath will work with a string, I was just using the file loading as a 
shortcut since I had to write it out.

Thanks everyone for your suggestions!

Cory



More information about the charlotte mailing list