Re: [ID 20010514.022] Makemaker a bit too prefix-happy
Ronald J. Kimball [Mon, 14 May 2001 09:38:59 +0000 (05:38 -0400)]
Message-ID: <20010514093859.A1479715@linguist.thayer.dartmouth.edu>

p4raw-id: //depot/perl@10101

lib/ExtUtils/MM_Unix.pm

index 83f34b3..6837131 100644 (file)
@@ -3110,7 +3110,7 @@ sub prefixify {
     my($self,$var,$sprefix,$rprefix) = @_;
     $self->{uc $var} ||= $Config{lc $var};
     $self->{uc $var} = VMS::Filespec::unixpath($self->{uc $var}) if $Is_VMS;
-    $self->{uc $var} =~ s/\w\Q$sprefix\E\w/$rprefix/s;
+    $self->{uc $var} =~ s,^\Q$sprefix\E(?=/|\z),$rprefix,s;
 }
 
 =item processPL (o)