点击运行
#!/usr/bin/perl $a = 10; # 执行 while 循环 while( $a < 20 ){ printf "a 的值为 : $a\n"; $a = $a + 1; }
运行结果 :
正在执行...