in reply to How to push the first two elements of an array in another array

Do you want to remove the elements from the first array? If yes:
@array2 = splice @array1, 0, 2; # OR push @array2, shift @array1 for 1, 2; # OR ...

If no:

@array2 = @array1[0, 1]; # OR $array2[$_] = $array1[$_] for 0, 1; # OR ...

I'd use the first alternative in both cases.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ