in reply to Re^2: odd text object problem - how to store as string?
in thread odd text object problem - how to store as string?

You are re-initializing $obj for every call to find_by_tag_name. You need to change your code to something like below:
sub convert { my $html = shift; my $t = HTML::TreeBuilder->new(); $t->parse($html); $t->eof; my $obj; $obj .= DumpTable( $_ ), $/, $/ for $t->find_by_tag_name('table') ; return($obj); }