in reply to Running multi task

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

Replies are listed 'Best First'.
Re^2: Running multi task
by joyfedl (Acolyte) on Aug 02, 2025 at 20:56 UTC

    Thanks so much