in reply to Re^4: Perl tidy - uses up RAM at crazy rate
in thread HTML::Tidy - uses up RAM at crazy rate

So you've tried two versions - one with HTML::Tidy->new outside the file loop, and one with it inside the loop? Was there actually no difference in behavior?

I notice that there's a "clear_messages" function. Have you tried calling that at the end of each iteration? (I assume you've read the man page for this module...)

  • Comment on Re^5: Perl tidy - uses up RAM at crazy rate