#!/usr/local/bin/perl -w # print warnings use strict; use File::Find; my $Start_dir = shift; die ">$Start_dir< is not a directory\n" if !-d $Start_dir; find( \&process, $Start_dir ); sub process { return if -f $File::Find::name; # This is success - the file exist return if -e $File::Find::name; print ">$File::Find::name < is not a file or was not found\n"; }