- If a key doesn't exist in a hashref before it's used, it's created for you automatically. This is called autovivification.
- The postfix increment operator (++) will increment the value of the thing it's after, then return the old value.
- next will skip to the next iteration of the loop.
So, this code will skip to the next iteration of the loop if it's already seen that element. Just as if you'd read the code out loud. :-)
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?