$file_full_path = "$path/$_"; if (-d $file_full_path){ ... process($file_full_path);