summaryrefslogtreecommitdiff
path: root/lib/blib.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-02 20:08:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-02 20:08:10 +0000
commitfe6f1558c7f680030b5f50795459bce8c0b94ba1 (patch)
treefa4ecf32f56db337590e06b5c228de3a44c69d65 /lib/blib.pm
parentf8fb7c905b2ebbea240082c064c2444b482a14f7 (diff)
downloadperl-fe6f1558c7f680030b5f50795459bce8c0b94ba1.tar.gz
still other multiline match cleanups (from Greg Bacon)
p4raw-id: //depot/perl@5450
Diffstat (limited to 'lib/blib.pm')
-rw-r--r--lib/blib.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/blib.pm b/lib/blib.pm
index 1d56a58174..0916f797fd 100644
--- a/lib/blib.pm
+++ b/lib/blib.pm
@@ -45,12 +45,12 @@ sub import
{
my $package = shift;
my $dir = getcwd;
- if ($^O eq 'VMS') { ($dir = VMS::Filespec::unixify($dir)) =~ s-/$--; }
+ if ($^O eq 'VMS') { ($dir = VMS::Filespec::unixify($dir)) =~ s-/\z--; }
if (@_)
{
$dir = shift;
- $dir =~ s/blib$//;
- $dir =~ s,/+$,,;
+ $dir =~ s/blib\z//;
+ $dir =~ s,/+\z,,;
$dir = '.' unless ($dir);
die "$dir is not a directory\n" unless (-d $dir);
}