In this case, I create an array of hash tables — a common method to store structured data such as this.
在本例中,我创建了一个散列表的数组——用来存储这类结构式数据的一种常见方法。
So the solution is simple: create a wrapper for the array, as shown in Listing 3.
所以,解决的方法很简单:为数组创建一个“包装”,正如清单3所示。
With the index array of scores created, we use the standard sort command as described in section 4 of the perlfaq to create the @sorted array of ordered search results.
创建分数索引数组后,我们将按照 perlfaq 的第 4 部分中的说明使用标准排序命令来创建排序后搜索结果的 @sorted 数组。
应用推荐