Fix bug [perl #24380] : assigning to a hash in list
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 13 Nov 2003 18:55:37 +0000 (18:55 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 13 Nov 2003 18:55:37 +0000 (18:55 +0000)
commitca65944e8ff8fff6e36ea7476ba807be16cfe2a9
tree854c7a750e4e61d1b9844a003ba85cdb144270dd
parenta9d9270b1989803b2cc2c5f6d551fe8565bcc2d0
Fix bug [perl #24380] : assigning to a hash in list
or scalar context yielded a wrong value if the list
contained duplicated keys for the hash. This is fixed
by counting the number of duplicate keys and trimming
the stack by the corresponding number of items.

p4raw-id: //depot/perl@21714
pp_hot.c
t/op/hashassign.t