You can solve this problem by using String.intern or maintaining a user hash set or hash map.
您可以通过使用String . intern或维护一个用户散列集合或散列映射来解决这个问题。
Hash entries are, similarly to arrays, easy to set but difficult to remove.
散列项类似于数组,易于设置但难以除去。
For example, the attributes of an XML node would naturally be represented in Perl as a hash, since they are a set of unique name-value pairs.
例如,在Perl中,把xml节点的属性自然地表示成一个散列,因为它们是一组唯一的名称-值对。
应用推荐