Is perl's each function worth using?

后端 未结 8 1667
忘掉有多难
忘掉有多难 2021-01-17 11:37

From perldoc -f each we read:

There is a single iterator for each hash, shared by all each, keys, and values

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-17 12:07

    use the keys() function to reset the iterator. See the faq for more info

提交回复
热议问题