if ($depth == 0) { next if $_ ne '.'; # <-- line 116 $_ = $directory; }