in reply to Re^3: LWP::Simple... Enough for Site Query & Data Download?
in thread LWP::Simple... Enough for Site Query & Data Download?

Unfortunately I get the error,
C:\Perl\scripts>perl -wc foo.pl Can't locate YAML.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at foo.pl line 6. BEGIN failed--compilation aborted at foo.pl line 6."
when I run this code..?
  • Comment on Re^4: LWP::Simple... Enough for Site Query & Data Download?

Replies are listed 'Best First'.
Re^5: LWP::Simple... Enough for Site Query & Data Download?
by Anonymous Monk on Jun 16, 2009 at 21:52 UTC
      This command returned "Can't find any package that provides YAML."

      Since I'm using Windows, I just opened the package manager and installed the very last package, "YAML - libYAML."

      This was successful, but the same error msg is still received when I try to run my code..?

Re^5: LWP::Simple... Enough for Site Query & Data Download?
by Your Mother (Archbishop) on Jun 16, 2009 at 22:42 UTC

    Sorry about that. I forget it's not a core module. Try this.

    use WWW::Mechanize; use Data::Dumper; $Data::Dumper::Terse = 1; my $mech = WWW::Mechanize->new(); $mech->get( "http://bub2.meteo.psu.edu/wxstn/wxstn.htm" ); print Dumper($mech->forms);