in reply to Using map to convert an array into a hash of array of arrays

Try:

Dumper(\%sorted_msgs)

Should be more meaningful

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."