# This library is no longer being maintained, and is included for backward
# compatibility with Perl 4 programs which may require it.
# In particular, this should not be used as an example of modern Perl
# programming techniques.
# Suggested alternative: Cwd
local($dotdots, $cwd, @pst, @cst, $dir, @tst);
unless (@cst = stat('.'))
$dotdots .= '/' if $dotdots;
unless (opendir(getcwd
'PARENT, $dotdots)) #'))
warn "opendir($dotdots): $!";
unless (@cst = stat($dotdots))
warn "stat($dotdots): $!";
closedir(getcwd
'PARENT); #');
if ($pst[$[] == $cst[$[] && $pst[$[ + 1] == $cst[$[ + 1])
unless (defined ($dir = readdir(getcwd
'PARENT))) #'))
warn "readdir($dotdots): $!";
closedir(getcwd
'PARENT); #');
unless (@tst = lstat("$dotdots/$dir"))
# warn "lstat($dotdots/$dir): $!";
# closedir(getcwd'PARENT); #');
while ($dir eq '.' || $dir eq '..' || $tst[$[] != $pst[$[] ||
$tst[$[ + 1] != $pst[$[ + 1]);
closedir(getcwd
'PARENT); #');