use strict; use warnings; my @bigarray = qw/a b c d e f g h i j/; my @subset = @bigarray[2, 5, 7]; print "@subset\n";