diff options
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"); } |