Perl是否有操作员退出函数或last函数?
sub f {
# some code here
if ($v == 10) {
# goto end of function/exit function/last
}
# some code here
}
Run Code Online (Sandbox Code Playgroud)
A goto可以做到这一点,但它以某种方式接缝错了?
| 归档时间: |
|
| 查看次数: |
274 次 |
| 最近记录: |