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...)
In reply to Re^5: Perl tidy - uses up RAM at crazy rate
by graff
in thread HTML::Tidy - uses up RAM at crazy rate
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |