my @array=(1..10); for my $i (@array){$i++;} print "array is now:@array";
这是改变数组的值.为什么?
perl for-loop
for-loop ×1
perl ×1