X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstrict.pm;h=053aae750122c78b7fbd36d3486fc5f9faf1a27a;hb=f3828575f121139b95363dc2ba6aab15ad201a85;hp=3616753fce70a947dbc71af81b409ae546a47b14;hpb=f65ef744683fe389a3464776a9eca0d2a8f54335;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/strict.pm b/lib/strict.pm index 3616753..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\.pmc?$/ ) { +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 = (