散列哈希中的散列数组 [英] sorting array of hash in hash
本文介绍了散列哈希中的散列数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有哈希:
Hi,
I have a Hash:
展开 | 选择 | Wrap | 行号
推荐答案
这个学校/班级/课程是否有效?
Is this school/class/course work?
哈希没有订单。如果要对数据进行排序,请改为使用数组。
A hash has no order. If you want to have data sorted, use an array instead.
哈希没有顺序。如果要对数据进行排序,请改用数组。
A hash has no order. If you want to have data sorted, use an array instead.
这是可能的,但我也建议使用数组。见Tie :: SortHash和Tie :: IxHash。
It is possible but I would also recommend using an array. See Tie::SortHash and Tie::IxHash.
这篇关于散列哈希中的散列数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文