map { $_[$_{$_}] = # $_{$_} is the hash value that was # just set to the array index sub { ... } -> ($_{$_}, $_) # hash {$_}, $_ = (value, key) pair }