while (($key, $lref) = each %HoL) { my %h = (); @h{@{$lref}} = (1) x @{$lref}; $HoL{$key} = \%h; }
In reply to hash of lists - hash of hashes by visnu