This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
quotemeta the stuff intended literally in RE
authorEd J <mohawk2@users.noreply.github.com>
Sat, 30 Mar 2019 19:51:53 +0000 (15:51 -0400)
committerJames E Keenan <jkeenan@cpan.org>
Sat, 30 Mar 2019 19:52:04 +0000 (15:52 -0400)
For: RT 133966

Committer: Bump $VERSION in dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Base.pm

dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Base.pm
dist/ExtUtils-CBuilder/t/04-base.t

index 9f8427f..f69ff38 100644 (file)
@@ -9,7 +9,7 @@ use Text::ParseWords;
 use IPC::Cmd qw(can_run);
 use File::Temp qw(tempfile);
 
-our $VERSION = '0.280230'; # VERSION
+our $VERSION = '0.280231'; # VERSION
 
 # More details about C/C++ compilers:
 # http://developers.sun.com/sunstudio/documentation/product/compiler.jsp
@@ -50,7 +50,7 @@ sub new {
     my ($ccbase, $ccpath, $ccsfx ) = fileparse($self->{config}{cc}, qr/\.[^.]*/);
 
     ## If the path is just "cc", fileparse returns $ccpath as "./"
-    $ccpath = "" if $self->{config}{cc} =~ /^$ccbase$ccsfx$/;
+    $ccpath = "" if $self->{config}{cc} =~ /^\Q$ccbase$ccsfx\E$/;
       
     foreach my $cxx (@{$cc2cxx{$ccbase}}) {
       my $cxx1 = File::Spec->catfile( $ccpath, $cxx . $ccsfx);
index 5daed5f..3597aad 100644 (file)
@@ -24,7 +24,7 @@ ok( $base, "ExtUtils::CBuilder::Base->new() returned true value" );
 isa_ok( $base, 'ExtUtils::CBuilder::Base' );
 
 {
-  $phony = 'foobar';
+  $phony = 'foobar++';
   $base = ExtUtils::CBuilder::Base->new(
       config  => { cc => $phony },
   );