in reply to multiple URL web scraping
Hi Lisa1993,
It sounds like you're fairly new to Perl, so I'd suggest you have a look at perlintro which goes over many of the basics. In this case a loop, something like foreach my $url (@urls) { ... } might be appropriate for you.
It also covers reading from files, have a look at the Files and I/O section, which shows you how to use open, while and close. A tip, since that section doesn't mention it, have a look at chomp too.
As for your second question, yes, sleep, int, and rand are Perl built-in functions, so you can always use them anywhere.
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: multiple URL web scraping
by Lisa1993 (Acolyte) on Nov 03, 2016 at 08:09 UTC |