Help for this page

Select Code to Download


  1. or download this
    # splice of the residue array after the first matching element
    # note the last, we finish the loop once we found $sorted_nums[0]
    ...
    foreach(@incline) {
        print $_ . " ";
    }
    
  2. or download this
    my $pos = $#start_incline;
    foreach(reverse @start_incline) {
        (@inline = @start_incline[$pos+1 .. $#start_incline], last) if ($_
    + == $sorted_nums[0]);
        --$pos;
    }