http://www.perlmonks.org?node_id=695886

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.
#!/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"; #----------------------