my $file = 'c:\temp\running.tmp';' if(-e $file){ print "Running\n"; }else{ print "Not Running\n"; }