package Cwd;
-$VERSION = $VERSION = '2.18';
+$VERSION = $VERSION = '3.01';
=head1 NAME
my ($dir, $file) = $start =~ m{^(.*)/(.+)$}
or return cwd() . '/' . $start;
- if (-l _) {
+ # Can't use "-l _" here, because the previous stat was a stat(), not an lstat().
+ if (-l $start) {
my $link_target = readlink($start);
die "Can't resolve link $start: $!" unless defined $link_target;
sub _vms_abs_path {
return $ENV{'DEFAULT'} unless @_;
+
+ # may need to turn foo.dir into [.foo]
my $path = VMS::Filespec::pathify($_[0]);
- if (! defined $path)
- {
- _croak("Invalid path name $_[0]")
- }
+ $path = $_[0] unless defined $path;
+
return VMS::Filespec::rmsexpand($path);
}