Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我for($j=2;$j<@slice1[$i];$j++)在我的问题中使用过。
for($j=2;$j<@slice1[$i];$j++)
我如何使用foreach上述语句?
foreach
这会起作用:
for my $j (2..$slice1[$i]-1)