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.
In reply to HTTP: :REQUEST by meanroc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |