This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #21031] $File::Find::name ne $_ w/no_chdir
[perl5.git] / lib / File / Find.pm
index 8953e97..9b15494 100644 (file)
@@ -700,6 +700,7 @@ sub _find_opt {
            }
 
            $name = $abs_dir . $_; # $File::Find::name
+           $_ = $name if $no_chdir;
 
            { $wanted_callback->() }; # protect against wild "next"