in reply to Data Aggregation

Here is your line 20:
my $response = $agent-> post($url, $forms
You did not declare a variable named "forms". Are you trying to use your %form hash? From the documentation of LWP::UserAgent, it looks like you could pass an array reference to post. Try:
my $response = $agent-> post($url, [ "country" => $countries[$i], "years1%5B%5D" => $years[0], "c_tab" => '0', "idbtable" => '0' ]);
what is with the painfully slow page load time? Is it just me? Or does everyone have this problem?
It's not just you.

Replies are listed 'Best First'.
Re^2: Data Aggregation
by hodge-podge (Novice) on May 06, 2010 at 01:34 UTC
    Well, wouldn't I have to specify the form it is going to post to?

      That is specified by your URL. An HTML form element has a method (POST in your case, so you use the post() method), an action (the url) and a set of inputs, which are handled in your array reference. No further input is needed to do the right thing here.


      print map{substr'hark, suPerJacent other l',$_,1}(11,7,6,16,5,1,15,18..23,8..10,24,17,0,12,13,3,14,2,4);