This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Correct detection of absent modules. Based on
[perl5.git] / ext / Devel / PPPort / t / test.t
index 469bd87..aff8630 100644 (file)
@@ -2,7 +2,7 @@ BEGIN {
     chdir 't' if -d 't';
     @INC = '../lib' if -d '../lib';
     require Config;
     chdir 't' if -d 't';
     @INC = '../lib' if -d '../lib';
     require Config;
-    if (($Config::Config{'extensions'} !~ /\bDevel::PPPort\b/) ){
+    if (($Config::Config{'extensions'} !~ m!\bDevel/PPPort\b!) ){
         print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
         exit 0;
     }
         print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
         exit 0;
     }