- or download this
my @box;
for (...) {
...
$MinX, $MinY, $MaxX, $MaxY,
($MaxX - $MinX) * ($MaxY - $MinY)];
}
- or download this
@box = sort { $a->[5] <=> $b->[5] } @box;
- or download this
use Sort::Key qw(nkeysort_inplace);
nkeysort_inplace { $_->[5] } @box;
- or download this
# untested!
...
}
return ($max, @max);
}