in reply to array of key value pairs?

You probably want to look at Tie::Hash::MultiValue instead.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?