my %counts; while (my ($key,$value) = get_key_and_value()) { $counts{$key}{$value}++; } [download]
In reply to Re: Convert XML to Hash by Joost in thread Convert XML to Hash by D'Femstar