Help for this page

Select Code to Download


  1. or download this
    sub drill_down {
        my $i=@_/2;
        @_[ @_%2 ? $i : ($i-1, $i) ];
    }
    
  2. or download this
    return @_ if @_ < 3;
    
  3. or download this
    drill_down(@sorted);  # as the last statement in your sub
    
  4. or download this
    my @middle = drill_down(@sorted);
    return @middle;