For this approach, Tie::Hash::Indexed might be of some service.
In reply to Re^2: "Swarming" by radiantmatrix in thread "Swarming" by kwaping