cheech has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; my @date; open(IN, "<c:/perl/scripts/dates/dates.txt"); while (<IN>) { push (@date, $_); } close(IN); use WWW::Mechanize; foreach my $date (@date) { my $mech = WWW::Mechanize->new(); $mech->get( "http://bub2.meteo.psu.edu/wxstn/wxstn.htm" ); $mech->form_number(1); $mech->field( 'dtg' , $date ); $mech->click(); $mech->content(); my $file = "c:/perl/scripts/dates/$date.txt"; $mech->save_content($file); $mech->back(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize - can't submit each value in an array
by ikegami (Patriarch) on Jun 19, 2009 at 00:24 UTC | |
|
Re: WWW::Mechanize - can't submit each value in an array
by Anonymous Monk on Jun 18, 2009 at 23:38 UTC | |
by cheech (Beadle) on Jun 19, 2009 at 00:01 UTC | |
by Anonymous Monk on Jun 19, 2009 at 00:20 UTC | |
by cheech (Beadle) on Jun 19, 2009 at 00:32 UTC | |
by ikegami (Patriarch) on Jun 19, 2009 at 00:59 UTC | |
by Anonymous Monk on Jun 19, 2009 at 01:11 UTC | |
by Anonymous Monk on Jun 19, 2009 at 00:50 UTC |