作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
从 perldoc -f 使用
函数使用
的语法:
use Module VERSION LIST
use Module VERSION
use Module LIST
use Module
use VERSION
但在这种情况下:
use Test::More tests => 5;
(它将测试次数设置为 5)
表达式 tests => 5
的数据类型是什么?
是 LIST 还是其他?
如何在声明后使用此参数tests
?
最佳答案
是的,就是提到的 LIST
- =>
只是一种奇特的写法:
use Test::More ("tests", 5);
加载模块后依次调用 Test::More->import("tests", 5)
。
关于perl - 在 Perl 的 Test::More 中声明后如何使用参数 `tests`?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3670408/
我是一名优秀的程序员,十分优秀!