【文件属性】:
文件名称:If符号for符号如-perl入门教学PPT
文件大小:1.43MB
文件格式:PPT
更新时间:2021-04-25 09:01:34
perl ppt
If符号,for符号,如:
for(1..100){ #循环1到100
if($_ == 25){ #判断当前值
next; #跳过该步骤,相当于continue
}
print "the Number $_";
if($_ == 50){
last; #终止,相当于break
}
}
#还有一个redo操作符,返回本次循环的顶端
基本语法