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