"开关散"是个多义词,它可以指开关散(《幼科类萃》),开关散(《幼科指掌》),开关散(《医宗金鉴》),开关散(《重楼玉钥》),开关散(《青囊秘传》)。
这对于您需要处理复杂的命令行开关以创建多层散列时尤为有用。
This is especially true if you need to process complex command-line switches to create multi-level hashes.
在该散列条目中的“abbrev”字段被用来定义命令行开关,这样,随后我可以基于% freedb_searches信息定义一个- artist开关,它可以被简写为- i。
The "abbrev" field in the hash entry is used to define command-line switches, so later I can define an -artist switch that can be abbreviated to -i based on the % freedb_searches information.
这看起来可能不算什么,但是使用% freedb_searches散列来得到检索开关列表会使代码更短,而且容易维护。
It may seem like a little thing, but using the % freedb_searches hash to get the list of searching switches makes the code shorter and more maintainable.
应用推荐