pass scalar ref to HTML::TreeBuilder