$dateiname=test; $pfad="/hallo/Desktop/interesanter_Ordner/$dateiname.txt"; if(-e "$pfad"){ print "Datei ist vorhanden\n"; }