change:
code:
to
code:
$mod{$num} = $mod{$num} + 1;
then the value in the mod hash will be the number of forums they moderate. for keeping track of which forums, you could add a 2nd hash reference below the $mod{$num} one, something like:
code:
$forum_num++;
$the_forum_they_mod{$num} .= "$forum_num||";
then youll get a hash with usernumbers as keys and the values like "1||4||5" being the forums they mod...but make sure you sort your mods array first, as its not sorted to begin with.