diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-10-09 15:26:26 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-10-09 15:26:26 +0000 |
commit | f65ef744683fe389a3464776a9eca0d2a8f54335 (patch) | |
tree | 9c18bf565c800fbf984d03921e6dd769bf449bc1 /lib/warnings.pm | |
parent | 95a6757bf43f1a045363dc9547e437320d8bb9d7 (diff) | |
download | perl-f65ef744683fe389a3464776a9eca0d2a8f54335.tar.gz |
Files names for pragmas strict and warnings can end in .pmc
p4raw-id: //depot/perl@32083
Diffstat (limited to 'lib/warnings.pm')
-rw-r--r-- | lib/warnings.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/warnings.pm b/lib/warnings.pm index 060973642c..679a883ed4 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"); } |