#... ## regex anwenden $string =~ /$pattern/; ## teilstrings in je 1 element unterbringen @output = split(/,/, $1); #...