我看到这些可互换使用。有什么不同?
解决方法
@H_301_5@ 没有什么区别。从 perldoc perlsyn:The
foreach
keyword is actually a synonym for thefor
keyword,so you can useforeach
for readability orfor
for brevity.
The
foreach
keyword is actually a synonym for thefor
keyword,so you can useforeach
for readability orfor
for brevity.