Help for this page

Select Code to Download


  1. or download this
    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];