Using array operator to reference variable in an array
@a1 = (1, 2, 3, 4, 5, 6); @a2 = @a1[0 .. 3]; print join (", ", @a2);