【发布时间】:2014-03-12 23:41:08
【问题描述】:
Perl 中接下来的两行有什么区别:
PopupMsg("Hello");
&PopupMsg("Hello");
...
sub PopupMsg
{
subroutines code here...
}
请注意,在某些情况下,我必须使用第一行,而在某些情况下,我必须使用第二行,否则会出错。
【问题讨论】:
-
请举例说明何时必须使用第二种形式。
标签: perl subroutine