You can push the array refs onto a master array and loop through the master array and operate on the arrayrefs.
I had a similar
question. The individual arrays contained arrayrefs, but the answer should be close, or hopefully at the least a good starting point.
--------------
It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs