go top

scalar context

网络释义

  标量上下文

如果子程序在标量上下文(scalar context)中调用,它将返回为不确定的值,如果子程序在列表上下文(list context)中调用,那么它将返回一个空列表。

基于20个网页-相关网页

有道翻译

scalar context

标量上下文

以上为机器翻译结果,长、整句建议使用 人工翻译 。

双语例句

  • The difference lies in using in scalar context (as -n does in the second script) or list context (as the first script does).

    区别在于在标量上下文中的使用(如第二个脚本中使用- n)或在列表上下文中的使用(如第一个脚本所做的)。

    youdao

  • 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按单元素数组来处理列表上下文中计算得到的数量值。

    youdao

  • Subqueries are not allowed in this context. Only scalar expressions are allowed.

    在此上下文中不允许使用子查询。只允许使用标量表达式。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定