[svn:perlfaq] r12595 - perlfaq/trunk
[email protected] Mon, 9 Mar 2009 13:39:35 -0700 (PDT)
| Newsgroups | perl.cvs.perlfaq |
|---|---|
| Message-ID | <[email protected]> |
Author: comdog Date: Mon Mar 9 13:39:34 2009 New Revision: 12595 Modified: perlfaq/trunk/perlfaq9.pod Log: * perlfaq9: How do I fetch an HTML file? + fixed errant comma in code example Modified: perlfaq/trunk/perlfaq9.pod ============================================================================== --- perlfaq/trunk/perlfaq9.pod (original) +++ perlfaq/trunk/perlfaq9.pod Mon Mar 9 13:39:34 2009 @@ -220,7 +220,7 @@ It can also store the resource directly in a file: - use LWP::Simple, qw(getstore); + use LWP::Simple qw(getstore); getstore( "http://www.example.com/index.html", "foo.html" ); @@ -253,7 +253,7 @@ $ua = LWP::UserAgent->new(); my $req = POST 'http://www.perl.com/cgi-bin/cpan_mod', - [ module => 'DB_File', readme => 1 ]; + [ module => 'DB_File', readme => 1 ]; $content = $ua->request($req)->as_string; =head2 How do I decode or create those %-encodings on the web?