@array = (1,2); ($scalar1, $scalar2, $scalar3)=@array; print $scalar1, $scalar2, $scalar3;
1 2 Null value
1 2 0
1 2 3
Error:Array out of bound