http://www.perlmonks.org?node_id=1189519


in reply to Scraping a website - Unterminated quoted string

In this line

if ($html =~ m/href="(\/listing\/category.inland\/prepare\/last-news\/ +\d+">)Weiter/) {
your capture includes stuff into $1 not considered part of the url, including double quotes. Try this
if ($html =~ m/href="(\/listing\/category.inland\/prepare\/last-news\/ +\d+)">Weiter/) {
same at
if ($html =~ m/href="(\/inland\/\d+\-.*?\/" class="cover__link link "> +)/g)
try
if ($html =~ m/href="(\/inland\/\d+\-.*?\/)" class="cover__link link " +>/g)