summaryrefslogtreecommitdiff
path: root/lib/strict.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-10-09 15:26:26 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-10-09 15:26:26 +0000
commitf65ef744683fe389a3464776a9eca0d2a8f54335 (patch)
tree9c18bf565c800fbf984d03921e6dd769bf449bc1 /lib/strict.pm
parent95a6757bf43f1a045363dc9547e437320d8bb9d7 (diff)
downloadperl-f65ef744683fe389a3464776a9eca0d2a8f54335.tar.gz
Files names for pragmas strict and warnings can end in .pmc
p4raw-id: //depot/perl@32083
Diffstat (limited to 'lib/strict.pm')
-rw-r--r--lib/strict.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strict.pm b/lib/strict.pm
index bcb1321613..3616753fce 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");