The difference lies in using in scalar context (as -n does in the second script) or list context (as the first script does).
区别在于在标量上下文中的使用(如第二个脚本中使用-n)或在列表上下文中的使用(如第一个脚本所做的)。
If a callback does not require arguments, we do not need to create the anonymous list, since Perl treats scalar values, evaluated in list context, as single-element arrays.
如果回调不需要参数,则我们不需要创建那个匿名列表,因为Perl按单元素数组来处理列表上下文中计算得到的数量值。
Subqueries are not allowed in this context. Only scalar expressions are allowed.
在此上下文中不允许使用子查询。只允许使用标量表达式。
The iconicity of politeness in the mental representation is discussed, which can be examined from cognitive context iconicity, pragmatic distance iconicity and scalar quantity iconicity.
从认知语境象似性、语用距离象似性与等级数量象似性等三方面来考察礼貌在心理表征上的象似性。
The iconicity of politeness in the mental representation is discussed, which can be examined from cognitive context iconicity, pragmatic distance iconicity and scalar quantity iconicity.
从认知语境象似性、语用距离象似性与等级数量象似性等三方面来考察礼貌在心理表征上的象似性。
应用推荐