-------------------------------1118617628 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hello, maybe it's not the most elegant solution, but I'd create copies of the original hash for the subgroups and use the delete_if method for hashes to throw out everything that does not belong to group number n.. Best regards, Axel -------------------------------1118617628--