vit has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I can't figure out why it works for url #1 and #3 but does not work for #2. Just returns an empty string.
I can't figure out why it works for url #1 and #3 but does not work for #2. Just returns an empty string.
#!/usr/bin/perl use strict; use warnings; my $url; #1 $url = "http://www.perlmonks.org"; #2 $url = "http://en.wikipedia.org/wiki/Hotel"; #3 $url = "http://search.yahoo.com/search?p=hotel&fr=yfp-t-103&toggle= +1&cop=mss&ei=UTF-8"; use LWP::Simple; my $str = LWP::Simple::get($url); #---------------------- #print "$str\n"; #----------------------
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: LWP::Simple::get($url) does not work for some urls
by Gangabass (Vicar) on Jul 07, 2008 at 00:00 UTC | |
by tinita (Parson) on Jul 07, 2008 at 12:56 UTC | |
Re: LWP::Simple::get($url) does not work for some urls
by Your Mother (Archbishop) on Jul 06, 2008 at 23:53 UTC | |
Re: LWP::Simple::get($url) does not work for some urls
by Lawliet (Curate) on Jul 06, 2008 at 23:55 UTC | |
Re: LWP::Simple::get($url) does not work for some urls
by Khen1950fx (Canon) on Jul 07, 2008 at 07:04 UTC | |
by moritz (Cardinal) on Jul 07, 2008 at 08:59 UTC | |
by Khen1950fx (Canon) on Jul 07, 2008 at 20:39 UTC | |
Re: LWP::Simple::get($url) does not work for some urls
by Gangabass (Vicar) on Jul 08, 2008 at 00:46 UTC | |
Re: LWP::Simple::get($url) does not work for some urls
by linuxer (Curate) on Jul 07, 2008 at 20:03 UTC |
Back to
Seekers of Perl Wisdom