in reply to Adding values to a hash of hashes
and this seems rather strange because the values of %subjects never change, so each author ends up with exactly the same set of buddies. Is that what you intended? Or is some code missing/wrong in your post?my (%authors, %subjects); # and populate these hashes somehow # the sort is irrelevant, at least for the part of the code you show for my $from (keys %authors) { $authors{$from}->{$buddy}++ for my $buddy map { split /\t/ } values %subjects; }
-- Hofmator
|
|---|