in reply to Extracting data from a website.

Let WWW::Mechanize::Shell build you a WWW::Mechanize script. I just learned about it a few days ago, and it's a wonderful gadget. Goes something like this:

perl -MWWW::Mechanize::Shell -weshell > get http://your_site > form # Displays the form variables > click Agree # Select the right button to click, or +just 'submit' if there's only 1 form > content # Show the page content > script /tmp/foobar # Save a WWW::Mechanize-based script in + /tmp > q # Quit

I used it to script deleting comments in WordPress, and was very impressed. Took about 30 seconds to "write" that script.

-- 
Education is not the filling of a pail, but the lighting of a fire.
 -- W. B. Yeats