in reply to What came (in) first, the push or the splice?

What about the option where the source AoH is lexically scoped and is reaped when it goes out of scope?

Also, for clearing it, what about $#cp = -1;? On some Perls, particularly older ones, that's the fastest way to make the contents of an array unaccessible.


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?