http://qs321.pair.com?node_id=1151262

stumped has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to scrape some info from a web site. I can navigate to the page using mechanize, but I am struggling to getting the text from the page. It is contained in div tags eg:

 <div id="foo">bar: 19.00</div>

What I want to do is extract the text "bar: 19.00". I am looking for is a way to point to the div id 'foo' and then extract the contents to the next div close tag.

I would be grateful for any pointers.

Thanks