in reply to Re: Need to sort and data structure based on values inside arrayrefs.
in thread Need to sort and data structure based on values inside arrayrefs.
1). Created another hash with 5th entry as value.
2). Sorted the that hash, moved keys to an array
, @sorted had the required output.my @sorted = sort { $subHash{$b} <=> $subHash{$a} } keys %subHash;
|
|---|