in reply to Re^2: Ending a loop of content of LWP's get-function
in thread Ending a loop of content of LWP's get-function
$url = $2; <-- called $url here print "$url\n"; push @urls, $new_url; # or @new_urls <-- called $new_url here.
Just rename one.
Also, it seems you want to search for the pattern multiple times. You'll need the "g" modifier for that.
while ($html =~ m{...}g) { my $new_url = $2; print "$new_url\n"; push @urls, $new_url; }
|
|---|