in reply to sort HoA by tow keys
Remember, hashes are initialized as lists; you could just as easily saymy %HoA=( 1=>["ab",20090101,91010], 2=>["cd",20090101,91010], 3=>["ef",20090201,101000], ...... );
The initialization in your example, however, is effectively the following:my %HoA = ( 1, [...], 2, [...], 3, [...], ... );
Your hash has one key--a reference to the data structure you built--and no values.my %HoA = ( {...}, undef );
|
|---|