Hi there. I'm not clear on what you want exactly. You just want the names of the forms? WWW::Mechanize has a dump_forms method- so you may not need Mechanize::Firefox. Also, If you use the firefox 'firebug' extension, you can inspect any html element and then use the name or value in the script to mechanize what you want to do..
What I'm trying to do is make a simplified 'web scraper'
Frequently within our Org I need to collect data from various systems ( say checking the names on the internal colleague register )
I envisaged putting in the internal web address, then receiving back a set of links, forms, etc which the user could then select. I would save the choices in a config file and so allow the user to avoid repetitive checks.
So i'm bit confused by the answer as it suggest using HTML::Form but the documentation states it doesn't return this type of object.
I'd like to understand it properly as I intend to expand the code substantially
Ok cool I'll give that a go. My whole idea though is to try to avoid having to use firebug. I've been making scripts by hand for a little while and I wanted to take the time to make something a little more intelligent. I do understand I can only cover relatively simple scenarios, but i want to take more of the leg work out of setting up a scraper.
Cheers all the same.