in reply to Get element of array not looping.
More info on working with complex Perl data structures (once you get them into the right syntax :) is found in the Perl Data Structures Cookbook (perldsc).
Give a man a fish: <%-{-{-{-<