This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Files names for pragmas strict and warnings can end in .pmc
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 9 Oct 2007 15:26:26 +0000 (15:26 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 9 Oct 2007 15:26:26 +0000 (15:26 +0000)
p4raw-id: //depot/perl@32083

lib/strict.pm
lib/warnings.pm
warnings.pl

index bcb1321..3616753 100644 (file)
@@ -3,7 +3,7 @@ package strict;
 $strict::VERSION = "1.04";
 
 # Verify that we're called correctly so that strictures will work.
-unless ( __FILE__ =~ /(^|[\/\\])\Q@{[__PACKAGE__]}\E\.pm$/ ) {
+unless ( __FILE__ =~ /(^|[\/\\])\Q@{[__PACKAGE__]}\E\.pmc?$/ ) {
     # Can't use Carp, since Carp uses us!
     my (undef, $f, $l) = caller;
     die("Incorrect use of pragma '@{[__PACKAGE__,]}' at $f line $l.\n");
index 0609736..679a883 100644 (file)
@@ -10,7 +10,7 @@ our $VERSION = '1.06';
 
 # Verify that we're called correctly so that warnings will work.
 # see also strict.pm.
-unless ( __FILE__ =~ /(^|[\/\\])\Q@{[__PACKAGE__]}\E\.pm$/ ) {
+unless ( __FILE__ =~ /(^|[\/\\])\Q@{[__PACKAGE__]}\E\.pmc?$/ ) {
     my (undef, $f, $l) = caller;
     die("Incorrect use of pragma '@{[__PACKAGE__,]}' at $f line $l.\n");
 }
index 63cc677..148b408 100644 (file)
@@ -440,7 +440,7 @@ our $VERSION = '1.06';
 
 # Verify that we're called correctly so that warnings will work.
 # see also strict.pm.
-unless ( __FILE__ =~ /(^|[\/\\])\Q@{[__PACKAGE__]}\E\.pm$/ ) {
+unless ( __FILE__ =~ /(^|[\/\\])\Q@{[__PACKAGE__]}\E\.pmc?$/ ) {
     my (undef, $f, $l) = caller;
     die("Incorrect use of pragma '@{[__PACKAGE__,]}' at $f line $l.\n");
 }