http://www.perlmonks.org?node_id=1026897


in reply to Re^2: Accessing this array ref.
in thread Accessing this array ref.

I don't understand your question. If the data is sorted as Loops said, his solution should work for you.