in reply to Array of Hashes or Hash of Arrays

Ok. Here's what seems to be happening in these two statements:

Here's the understandable version of this code:

while(($key,$value)=each(%by_key) { $current_key_list_aref = $key_list_by_value{$value}; push(@$current_key_list_aref,$key); }