X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fwarnings.pm;h=79a5aa8bb55931b7746e79223ead91d5f193f9f4;hb=4c38808d92b95edd5d3bf512019007a1e4a385d9;hp=679a883ed4054e9e47b482f843da2f8fc8a78885;hpb=f65ef744683fe389a3464776a9eca0d2a8f54335;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/warnings.pm b/lib/warnings.pm index 679a883..79a5aa8 100644 --- a/lib/warnings.pm +++ b/lib/warnings.pm @@ -10,9 +10,9 @@ our $VERSION = '1.06'; # Verify that we're called correctly so that warnings will work. # see also strict.pm. -unless ( __FILE__ =~ /(^|[\/\\])\Q@{[__PACKAGE__]}\E\.pmc?$/ ) { +unless ( __FILE__ =~ /(^|[\/\\])\Q${\__PACKAGE__}\E\.pmc?$/ ) { 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"); } =head1 NAME