my @numbers = (1, 2, 3, 4, 5); # want the first and third elements # first element is at position 0 my ($first, $third) = @numbers[0, 2];