iterator A special programming gizmo that keeps track of where you are in something that you’re trying to iterate over. The "foreach" loop in Perl contains an iterator; so does a hash, allowing you to each through it.