# Kontrollausgabe print qq~cat /etc/hosts | grep "#village $tmpmainvillage"~; # Kommando ausführen und Ausgabe in @village ablegen @village = qx{ cat /etc/hosts | grep "#village $tmpmainvillage" };