meanroc has asked for the wisdom of the Perl Monks concerning the following question:
Hello guys, I was reading a code, and a do not understand this:
my $url=<STDIN>; my $req=HTTP::Request->new(GET=>$url); my $ua=LWP::UserAgent->new(); $ua->timeout(15); my $response=$ua->request($req);
What this make? Please, can you explain me? And what is the difference of use this code to use:
#!/usr/bin/perl use LWP::Simple; my $url=<STDIN>; my $resul=get $url;
Tks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP: :REQUEST
by kcott (Archbishop) on Jan 25, 2014 at 23:43 UTC |