diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2005-12-21 12:28:51 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2005-12-21 12:28:51 +0000 |
commit | 75876a4c9bcdb0baab5c9f895fdd1e4daefcc263 (patch) | |
tree | a9d549340106eb5e0d9a4f859be315d6ead04213 /modules/DirectoryManager.pm | |
parent | 7a4f7dcc42cb487f309036fbb53ff439392b701e (diff) | |
download | MPC-75876a4c9bcdb0baab5c9f895fdd1e4daefcc263.tar.gz |
ChangeLogTag: Wed Dec 21 06:28:04 2005 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/DirectoryManager.pm')
-rw-r--r-- | modules/DirectoryManager.pm | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/modules/DirectoryManager.pm b/modules/DirectoryManager.pm index 2a9b0b1c..6c1a7903 100644 --- a/modules/DirectoryManager.pm +++ b/modules/DirectoryManager.pm @@ -13,11 +13,6 @@ package DirectoryManager; use strict; use File::Basename; -if ($^O eq 'VMS') { - require VMS::Filespec; - import VMS::Filespec qw(unixify); -} - # ************************************************************ # Data Section # ************************************************************ @@ -31,7 +26,8 @@ if ($^O eq 'cygwin' && $cwd !~ /[A-Za-z]:/) { } } elsif ($^O eq 'VMS') { - $cwd = unixify($cwd); + $cwd = VMS::Filespec::unixify($cwd); + $cwd =~ s!/$!!g; } my($start) = $cwd; @@ -62,7 +58,8 @@ sub cd { } } elsif ($^O eq 'VMS') { - $cwd = unixify($cwd); + $cwd = VMS::Filespec::unixify($cwd); + $cwd =~ s!/$!!g; } } else { @@ -95,7 +92,9 @@ sub mpc_dirname { if ($^O eq 'VMS') { if ($dir =~ /\//) { - return unixify(dirname($dir)); + $dir = VMS::Filespec::unixify(dirname($dir)); + $dir =~ s!/$!!g; + return $dir; } else { return '.'; @@ -121,7 +120,6 @@ sub mpc_glob { my($post) = $3; for(my $i = 0; $i < length($mid); $i++) { my($p) = $pre . substr($mid, $i, 1) . $post; - my(@new) = $self->mpc_glob($p); foreach my $new ($self->mpc_glob($p)) { my($found) = undef; foreach my $file (@files) { @@ -149,7 +147,7 @@ sub mpc_glob { sub convert_slashes { #my($self) = shift; - return 1; + return 0; } |