From #43633: Cwd::cwd() use in File::Spec::Unix use causes unnecessary fork()
Abhijit Menon-Sen [Wed, 8 Aug 2007 16:28:40 +0000 (16:28 +0000)]
p4raw-id: //depot/perl@31686

lib/File/Spec/Unix.pm

index 5674731..98a24dd 100644 (file)
@@ -475,7 +475,7 @@ L<File::Spec>
 # File::Spec subclasses use this.
 sub _cwd {
     require Cwd;
-    Cwd::cwd();
+    Cwd::getcwd();
 }