# !/bin/perl -w $dir = "C:\\temp"; if ((-e "$dir\\*.tif") || (-e "$dir\\*.pdf)) { print "Tif-files or Pdf-files available\n"; exit; }else{ print "Tif-files or Pdf-files not available\n"; exit; }