http://www.perlmonks.org?node_id=53294

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

Hey Now, just a little question. Ok I understand regular expressions and all but what I am looking to do is to parse HTML. Sounds simple enough. Heres and example of what I want to do: Say there is a static webpage with some HTML that looks like this
<p><b>Location:</b> Northern Africa, bordering the Mediterranean Sea, between Egypt and Tu +nisia <p><b>Geographic coordinates:</b> 25 00 N, 17 00 E <p><b>Map references:</b> Africa <p><b>Area:</b> <br><i>total:</i> 1,759,540 sq km <br><i>land:</i> 1,759,540 sq km <br><i>water:</i> 0 sq km <p><b>Area - comparative:</b> slightly larger than Alaska <p><b>Land boundaries:</b> <br><i>total:</i> 4,383 km <br><i>border countries:</i> Algeria 982 km, Chad 1,055 km, Egypt 1,150 km, Niger 354 km, Sudan 383 + km, Tunisia 459 km <p><b>Coastline:</b> 1,770 km
how would I parse this to enter into a database so that under Location would go the appropiate data and so on. And also how would you best recive the HTML, say from http://www.foobar.com/poopy/data.html how would I best get the HTML and then parse it into a database. Thank you if you can help out at all