G'day joyfedl,
You seem to be thinking along correct lines. I didn't look too deeply at your detailed code. I think you probably want something like:
$ perl -E ' my @lives = (1, 2, 3); my $url_base = "https://v3.football.api-sports.io/fixtures?live="; for my $live (@lives) { my $url = "$url_base$live"; say "Do stuff with $url"; } ' Do stuff with https://v3.football.api-sports.io/fixtures?live=1 Do stuff with https://v3.football.api-sports.io/fixtures?live=2 Do stuff with https://v3.football.api-sports.io/fixtures?live=3
— Ken
In reply to Re: Running multi task
by kcott
in thread Running multi task
by joyfedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |