Ankit.11nov has asked for the wisdom of the Perl Monks concerning the following question:
The above code is working fine when I am trying to access any HTTP link.use strict; use warnings; use WWW::Mechanize; my $mech=WWW::Mechanize->new(); my $URL="http://in.yahoo.com/"; $mech->get($URL); my $file=$mech->content(); open FILE_OUT , ">output.html" or die "$!"; print FILE_OUT $file; close FILE_OUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fetching web page
by davorg (Chancellor) on Jul 23, 2009 at 09:45 UTC | |
by Anonymous Monk on Jul 23, 2009 at 11:59 UTC | |
by davorg (Chancellor) on Jul 23, 2009 at 12:30 UTC | |
by Anonymous Monk on Jul 23, 2009 at 12:09 UTC | |
by Anonymous Monk on Jul 24, 2009 at 04:21 UTC |