学习理解匿名数组引用和解除数组元素引用的Perl符号。
Learn to understand the Perl notation for anonymous array references and dereferencing array elements.
若要获取数组中的值,您可以指定数组引用(请参见清单15)。
To get a value out of the array, specify the array reference (see Listing 15).
数组引用,即将要读入的有效文件放入数组中,依次遍历读取处理。
The input data will be read from each file in turn. The complete array will be walked to ensure that it only contains valid filenames before any data is compressed.
如果将一个数组引用作为方法调用的参数,则传递了一个原数组的新引用。
When you pass a reference to an array as an argument to a method call, you pass a new reference to the original array.
在清单5中,我们在调用期间动态地构建了数组引用,然后在打印结果时使用OID作为散列键。
In Listing 5 we build the array reference dynamically during the call, and then use the OID as the hash key when printing out the result.
每一个个体还拥有一个“单词”数组引用,在这个数组中保持有在衍生过程中那个个体生成的单词。
Every individual also will have a "words" array reference that will hold all the words the individual made during this generation.
通过简单地复制而不是克隆数组引用,消息和产生消息的类都保存了前一投标数组的主副本的一个引用。
By simply copying the array reference instead of cloning it, both the message and the class that produces it hold a reference to the master copy of the previous bids array.
注意subproblem方法没有复制这些元素;它只是将数组引用和偏移复制到一个现有的数据结构中。
Note that the subproblem method does not copy the elements; it merely copies the array reference and offsets into an existing data structure.
同样,我用AppConfig的get get方法来得到对配置列表的数组引用,并将用户给出的数据压入到数组中。
Again, I use the get method of AppConfig to get an array reference to the configuration list and push the user-provided data into that array.
AppConfig 的get()方法可以用来得到各个参数的值;由于感兴趣的参数总是数组引用,我自动地对它们进行解引用。
The get() method of AppConfig can be used to get the value of an individual parameter; because the parameters of interest are always array references, I automatically de-reference them.
可以通过访问内部的AppConfig:State数据或作为数组变量值返回给您的数组引用来实现这一步,但我们建议您不要这样做。
You can do it by accessing internal AppConfig: : State data or the array reference returned to you as the value of the array variable, but it is not recommended that you do so.
(这将禁止具有数组值的属性,因为当数组引用被声明为volatile 时,只有引用而不是数组本身具有 volatile 语义)。
This prohibits having array-valued properties, as when an array reference is declared volatile, only the reference, not the elements themselves, have volatile semantics.
所有节点都创建成临时(或轻量级)对象,按要求构造成对这些数组的引用,并在不再需要时废弃。
All nodes are created as transient (or flyweight) objects, constructed on demand as references into these arrays and discarded when they are no longer needed.
与引用对象属性不同的是,您可以将属性作为数组值访问。
Rather than reference them as you do an object property, you access them like array values.
使得消息类不可变并在构造时克隆像数组这样的可变引用,就可以防止该问题。
Making the message classes immutable and cloning mutable references such as arrays at construction time would have prevented this problem.
为此,要遍历结果数组,每次获取一个单独元素的引用并检索它的属性。
To do that, you go through the results array, each time getting a reference to the individual element and retrieving its attributes.
目前不支持访问数组、实例变量和对象引用。
Accessing arrays, instance variables, and object references are not supported as of now.
为了实现您老板的第一个要求(将子元素转换为属性),需要替换对数组的引用,如清单10所示。
To achieve your boss's first objective, which is to convert elements to attributes, you need to replace references to arrays, as shown in Listing 10.
该方法的参数包括微格式名称、搜索的文档引用和可选的参数数组。
This method accepts a microformats name, a document reference to start the search from, and an optional array of parameters.
清单2.使用对一元素数组的最终引用欺骗编译器。
Listing 2. Faking out the compiler with a final reference to a one-element array.
数组越大,所创建的本地引用就越多。
The larger the array, the more local references will be created.
向量本质上是作为标量值进行处理的,而数组是作为引用来进行操作的。
Vectors are treated essentially as scalar values, while arrays are manipulated as references.
如果不使用引用,就需要将整个数组或hash 表复制到该函数的调用栈中,然后在函数中再次对其进行复制。
Without a reference, you copy the entire array or hash onto the function call stack, and then copy it again in the function.
该切片所引用的数组分段可以通过将新的切片赋值给同一变量来更改。
The segment of the array that the slice references can be changed by assigning a new slice to the same variable.
如果使用大型数组或hash表,并使用它们作为函数的参数,那么应该使用它们的一个引用,而不应该直接使用它们。
If you work with large arrays or hashes and use them as arguments to functions, use a reference instead of the variable directly.
这意味着需要充分了解引用、散列和数组在Perl中的交互作用。
This means that you need a solid understanding of the interaction of references, hashes, and arrays in Perl.
数组arguments是指向传递到这个函数参数的ECMAScript标准内置引用。
The arguments array is the ECMAScript standard built-in reference to the arguments passed to this function.
为此,您可以使用Ruby中的hash类,它允许您创建键值对(类似于数组),但是随后可以轻松地通过键引用它们。
For this purpose, you use the hash class in Ruby, which allows you to create key-value pairs (in what appears to be an array), but then easily reference them later by key.
每次通知shell被打开,我们在静态的shell数组中保留一个引用。
Every time a notification shell is opened, we keep a reference of it in a static array of shells.
colors属性接受对包含有位置-颜色对的一个数组的引用。
The -colors attribute accepts a reference to an array containing pairs of positions and colors.
应用推荐