From: Rafael Garcia-Suarez Date: Tue, 9 Oct 2007 15:26:26 +0000 (+0000) Subject: Files names for pragmas strict and warnings can end in .pmc X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f65ef744683fe389a3464776a9eca0d2a8f54335;p=p5sagit%2Fp5-mst-13.2.git Files names for pragmas strict and warnings can end in .pmc p4raw-id: //depot/perl@32083 --- diff --git a/lib/strict.pm b/lib/strict.pm index bcb1321..3616753 100644 --- a/lib/strict.pm +++ b/lib/strict.pm @@ -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"); diff --git a/lib/warnings.pm b/lib/warnings.pm index 0609736..679a883 100644 --- a/lib/warnings.pm +++ b/lib/warnings.pm @@ -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"); } diff --git a/warnings.pl b/warnings.pl index 63cc677..148b408 100644 --- a/warnings.pl +++ b/warnings.pl @@ -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"); }