loops - Fetch a URL 100 times using Perl -
the problem met need 1 url (i cannot specific link exactly, link doing request , looks http://link.com/?name=name&password=password& , etc)
and need fetch url 100 times in row. can not manually using browser - takes time.
is there option run (just run, put link in browser , press enter) link 100 times in row using perl scripting?
i have not met before perl , therefore asking directly. google before information , make little script, seems missing in knowledge:
#!/usr/bin/perl -w use lwp::simple; $uri = 'http://my link here'; $content = $uri;
could please advise me how can finish script?
use (simple) for
loop.
#!/usr/bin/perl use strict; use warnings; use lwp::simple; $uri = 'http://my link here'; $uri 1 .. 100;
update: read in comment don't care returned data, i've edited answer remove unnecessary $content
variable.
Comments
Post a Comment