这种数组没有明确的类型,被称为匿名数组(anonymous array),既不能作为子程序的参数,也无法同其它数组混用—-即使声明一样。通常情况下应避免出现这种情况
基于48个网页-相关网页
学习理解匿名数组引用和解除数组元素引用的Perl符号。
Learn to understand the Perl notation for anonymous array references and dereferencing array elements.
相反,Vimscript中的列表的序列是可变的,并且在很多情况下类似于匿名数组数据结构。
In contrast, lists in Vimscript are mutable and in many ways far more like (references to) anonymous-array data structures.
包含perl的那行命令表示“将所有的输入行读入一个匿名数组(),颠倒元素的顺序,并打印这个新的数组”。
The line of perl says, "Read all input lines into an anonymous array , reverse the order of the elements, and print the new array."
应用推荐