in reply to Re: LWP::Simple... Enough for Site Query & Data Download?
in thread LWP::Simple... Enough for Site Query & Data Download?
use strict; use warnings; use WWW::Mechanize; my $outfilename = "data.txt"; open(TFILE,">$outfilename"); my $mech = WWW::Mechanize->new(); $mech->get( "http://bub2.meteo.psu.edu/wxstn/wxstn.htm" ); $mech->forms; print TFILE "$mech \n"; exit;
I was expecting a list of the available forms on that page, but got the following line of text instead:
WWW::Mechanize=HASH(0x18454fc)
Is this because my variable $mech is in scalar context and therefore returned a reference to the array holding the form id's?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: LWP::Simple... Enough for Site Query & Data Download?
by Your Mother (Archbishop) on Jun 15, 2009 at 00:52 UTC | |
by cheech (Beadle) on Jun 16, 2009 at 21:26 UTC | |
by Anonymous Monk on Jun 16, 2009 at 21:52 UTC | |
by cheech (Beadle) on Jun 16, 2009 at 22:12 UTC | |
by Anonymous Monk on Jun 17, 2009 at 00:17 UTC | |
by Your Mother (Archbishop) on Jun 16, 2009 at 22:42 UTC |