Well, my mac isn't foobar-ed, but it isn't willing to do perl either.
I installed perl (with several pre-requisites first) but it can't find HTML::TreeBuilder and I can't find TreeBuilder with grep either. I have a subset of the HTML files, or something.