warn on ($s,%h) = (1,{}) as on %h = {}
authorRuslan Zakirov <ruz@bestpractical.com>
Sun, 7 Oct 2012 22:41:06 +0000 (02:41 +0400)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 11 Dec 2012 16:59:39 +0000 (08:59 -0800)
Latter results in "Reference found where even-sized list expected"
message while former produces "Reference found where even-sized list
expected". Quite inconsistent.

pp_hot.c

index 510d62b..df93228 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1124,7 +1124,7 @@ PP(pp_aassign)
                    TAINT_NOT;
                }
                if (relem == lastrelem) {
-                   do_oddball(hash, relem, firstrelem);
+                   do_oddball(hash, relem, firsthashrelem);
                    relem++;
                }
                LEAVE;