Need help with Parsing HTML

D

Danny

I would like to parse an HTML file by extracting the the contents of a form.
Like the form objects such as the values and names
name = idnumber value = 4
name = productname value = scooter
there are a few forms per page to read in, I would like to store in an array
or to a text file

Thanks in advance
 
B

Bob Walton

Danny said:
I would like to parse an HTML file by extracting the the contents of a form.
Like the form objects such as the values and names
name = idnumber value = 4
name = productname value = scooter
there are a few forms per page to read in, I would like to store in an array
or to a text file
....


Modules are your friend. For this, check out the HTML::parser module:

perldoc HTML::parser

This module should already be on your hard drive.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top