Localize PARENT (based on Ilya's microperl patch).
Jarkko Hietaniemi [Tue, 12 Aug 2003 10:40:54 +0000 (10:40 +0000)]
p4raw-id: //depot/perl@20645

lib/Cwd.pm

index 7f8ef65..42ce8d1 100644 (file)
@@ -379,6 +379,7 @@ sub _perl_abs_path
     {
        $dotdots .= '/..';
        @pst = @cst;
+       local *PARENT;
        unless (opendir(PARENT, $dotdots))
        {
            carp "opendir($dotdots): $!";