| Store | Cart

RE: [PATCH] RE: what problem solves e3def60f ?

From: Konovalov, Vadim <Vadi...@emc.com>
Fri, 12 Feb 2016 08:24:06 +0000
... the updated patch also increments strict.pm version.
--- strict.pm-	2016-01-08 18:22:20.246454624 +0000
+++ strict.pm	2016-02-12 03:31:52.792023871 +0000
@@ -1,13 +1,6 @@
 package strict;
 
-$strict::VERSION = "1.09";
-
-# Verify that we're called correctly so that strictures will work.
-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");
-}
+$strict::VERSION = "1.10";
 
 my ( %bitmask, %explicit_bitmask );
 
@@ -35,6 +28,14 @@
 
     my $inline_all_explicit_bits = $bits;
     *all_explicit_bits = sub () { $inline_all_explicit_bits };
+
+    # Verify that we're called correctly so that strictures will work.
+    if ( __FILE__ =~ /(\w+)\.pmc?$/ and $1 ne __PACKAGE__ ) {
+        # Can't use Carp, since Carp uses us!
+        my (undef, $f, $l) = caller;
+        die("Incorrect use of pragma '${\__PACKAGE__}' at $f line $l.\n");
+    }
+
 }
 
 sub bits {
Recent Messages in this Thread
Konovalov, Vadim Feb 12, 2016 08:24 am
Aristotle Pagaltzis Feb 12, 2016 10:48 am
Konovalov, Vadim Feb 12, 2016 10:53 am
Konovalov, Vadim Feb 12, 2016 10:55 am
Kent Fredric Feb 12, 2016 11:20 am
Konovalov, Vadim Feb 12, 2016 11:55 am
Kent Fredric Feb 12, 2016 11:14 am
Aristotle Pagaltzis Feb 12, 2016 12:34 pm
Konovalov, Vadim Feb 12, 2016 01:23 pm
Lukas Mai Feb 12, 2016 01:32 pm
Kent Fredric Feb 12, 2016 01:40 pm
Lukas Mai Feb 12, 2016 09:05 pm
Kent Fredric Feb 12, 2016 09:34 pm
Konovalov, Vadim Feb 14, 2016 11:14 am
Lukas Mai Feb 14, 2016 01:17 pm
Konovalov, Vadim Feb 15, 2016 07:07 am
Kent Fredric Feb 12, 2016 02:26 pm
Aristotle Pagaltzis Feb 12, 2016 05:15 pm
Aristotle Pagaltzis Feb 25, 2016 12:46 pm
Konovalov, Vadim Feb 25, 2016 09:56 pm
Aristotle Pagaltzis Feb 26, 2016 12:30 am
Kent Fredric Feb 12, 2016 06:29 pm
Messages in this thread