San*_*ing 5 perl
Perl是否有操作员退出函数或last函数?
last
sub f { # some code here if ($v == 10) { # goto end of function/exit function/last } # some code here }
A goto可以做到这一点,但它以某种方式接缝错了?
goto
Mat*_*aly 16
使用return;退出子程序.
return;
归档时间:
14 年,6 月 前
查看次数:
274 次
最近记录: