in reply to Scraping a website - Unterminated quoted string
In this line
your capture includes stuff into $1 not considered part of the url, including double quotes. Try thisif ($html =~ m/href="(\/listing\/category.inland\/prepare\/last-news\/ +\d+">)Weiter/) {
same atif ($html =~ m/href="(\/listing\/category.inland\/prepare\/last-news\/ +\d+)">Weiter/) {
tryif ($html =~ m/href="(\/inland\/\d+\-.*?\/" class="cover__link link "> +)/g)
if ($html =~ m/href="(\/inland\/\d+\-.*?\/)" class="cover__link link " +>/g)
In Section
Seekers of Perl Wisdom