hi, i am trying to parse a bunch of html files in a directory and i need help clearing the memory.
I get the same output from "$table_html" for all the files.
Seems like table_html doesnt get emptied out. I tried the delete and delete_content() methods but it did not work.
Any idea?
I get the same output from "$table_html" for all the files.
Seems like table_html doesnt get emptied out. I tried the delete and delete_content() methods but it did not work.
Any idea?
Code:
foreach $file (@dir_contents)
{
if(!(($file eq ".") || ($file eq "..")))
{
$filename = "/var/[URL unfurl="true"]www/cgi-bin/pages/$file";[/URL]
$te->parse_file($filename);
$table = $te->first_table_found;
$table_tree = $table->tree;
$table_html = $table_tree->as_HTML;
print $table_html."\n";
}
}