for my $file(@verzeichnisse){ $bool = 1 if(existsActBackup($bkupDirectory.'/'.$file,1)); }