数组赋值,预期和实际不一致;

数组赋值,预期和实际不一致;

@array=(1,2,3,4,5,6,7,8,9,10);
@array_a[0..2], @array_b = @array;

@array_a应该为(1,2,3); @array_b应该为(4,5,6,7,8,9,10)

可是我运行结果为@array_a为空,@array_b为(1,2,3,4,5,6,7,8,9,10);
就这么几行代码吗  那结果是那个样子的 楼下继续...
这样就可以了啊:
@array=(1,2,3,4,5,6,7,8,9,10);
@array_a=@array[0..2];
@array_b=@array[3..$#array];
print @array_a, "\n";
print @array_b, "\n";