Load File::Spec before using it in Cwd
authorEric Brine <ikegami@adaelis.com>
Sat, 4 Feb 2012 03:32:57 +0000 (22:32 -0500)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 4 Feb 2012 06:31:01 +0000 (22:31 -0800)
dist/Cwd/Cwd.pm

index 7d04260..83ddae9 100644 (file)
@@ -579,6 +579,7 @@ sub _perl_abs_path
        unless (opendir(PARENT, $dotdots))
        {
            # probably a permissions issue.  Try the native command.
+           require File::Spec;
            return File::Spec->rel2abs( $start, _backtick_pwd() );
        }
        unless (@cst = stat($dotdots))