Here's my code
#!/usr/bin/perl
use WWW::Mechanize;
use HTML::TableExtract qw(tree);;
use strict;
start();
sub start {
my $te = HTML::TableExtract -> new( );
my $agent = WWW::Mechanize->new( stack_depth => 0);
$agent-> agent_alias( 'Windows IE 6' );
$agent->get('http://www.perlmonks.org/?');
my $page = $agent->content;
for (my $c =0 ; $c < 500; $c++)
{
$te->parse ($page);
print "c is $c\n";
}
}
exit();
Every time it executes
$te->parse($page), the memory used by the program increases. I know HTML::Tree has delete() to clear up the memory after using it, but how can I free up the memory used by TableExtract?