- or download this
my @array1 = (
{'platformid' => '22', ... },
...
...;
my $rc = Compare(\@ordered_array1, \@ordered_array2);
...;
- or download this
my @array1 = (
{'platformid' => '22', 'some' => 'stuff', ... },
...
{'platformid' => '22', 'other' => 'things', ... },
...,
);
- or download this
my @array3 = sort {
$a->{platformid} cmp $b->{platformid}
...
or
$a->{size} cmp $b->{size}
} @array1;
- or download this
sub enormously_complex_compare {
$a->{platformid} <=> $b->{platformid} # numeric?
...
my @array3 = sort enormously_complex_compare @array1;
my @array4 = sort enormously_complex_compare @array2;
...