清单 2. 检索开关打开了吗?
运算符在一个范围内迭代。因此,该脚本并不是数10个行,而是对- n开关生成的循环迭代10次(请参阅“perldoc perlrun”和清单2,以获得该循环的示例)。
Thus, the script does not count 10 lines, it counts 10 iterations of the loop generated by the -n switch (see "perldoc perlrun" and Listing 2 for an example of that loop).
所以,当你告诉计算机,对某个电路开关进行特定的赋值时,相比使用一串1和0的序列,比如“0101010”,你可以使用短语“LET X=2”,同样达到相同的目的。
So rather than tell the computer in 1's and 0's ('0101010' say) to put a particular set of values into a particular circuit, you could use the phrase 'LET X=2' to mean the same.
应用推荐