X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstrict.pm;h=053aae750122c78b7fbd36d3486fc5f9faf1a27a;hb=f3828575f121139b95363dc2ba6aab15ad201a85;hp=bcb1321613ab2632fec934abf6c6ee46346648c8;hpb=e3def60f2e5ccd1bf34656c3a5e1691f3bdc48a9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/strict.pm b/lib/strict.pm index bcb1321..053aae7 100644 --- a/lib/strict.pm +++ b/lib/strict.pm @@ -3,10 +3,10 @@ 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"); + die("Incorrect use of pragma '${\__PACKAGE__}' at $f line $l.\n"); } my %bitmask = (