I don't know too much about perl, got this code from someone long gone and have to sort an array by subkey value. The array is constructed as follows:
<within a loop>
$record = {
NAME => $taskname,
COMPDATE => $data{$notamnum}->{ComplianceDate}
};
push @records, $record;
<end of loop>
How do I sort the @records by COMPDATE? Thanks.
<within a loop>
$record = {
NAME => $taskname,
COMPDATE => $data{$notamnum}->{ComplianceDate}
};
push @records, $record;
<end of loop>
How do I sort the @records by COMPDATE? Thanks.