...
Can you see why? # /----------------- ww thinks problem is here ---------------\ </span>
Whilst I suspect that many people will jump on the use of each in a scalar context as the source of the problem, the actual cause is using %h as an rvalue.
My (tentative) explanation is that not only is there only one iterator per hash, but that iterator is also used internally when a list is generated from a hash. </span> # ww thinks the end span should be -----------^ # though this seems effectively a NoOp ???