Perl can't use last with the while statement modifier

后端 未结 0 438
余生分开走
余生分开走 2020-12-19 21:26

Perl can:

perl -le \'$d=1; while(1){ $d/=2 and ++$i or last } print "i=$i"\'

But not:

perl -le \'$d=1; $d/=2 and ++$         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题