#Funktioniert nicht, nur sinngemäß gemeint @bsp = map{{(split)[4]) =~ s/.txt$// => [(split)[2,3]]}} @bsp;