下面来看一个打印数组元素的例子。
包含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."
也可打印当前元素的所有属性,如清单4所示。
It can print all the attributes of the current element as in Listing 4.
应用推荐