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

chanakya has asked for the wisdom of the Perl Monks concerning the following question:

Greetings

I have a complex data structure as given below
@data_array_ref = [ mykey1 => {firstkey => 'firstvalue', secondkey => 'secondval' } mykey2 => {ninza => 'turtle', 'Hurricane' => 'Dennis'} mykey3 => [ [one,two, three] mykey4 => [ [4, 5, three] [6, 7, four] [8, 9, five] ] ]
I've tried to get the output as given below from the above data structure but I'm not successful.
Can someone throw some light about the same.
mykey1 => firstval, secondval mykey2 => turtle, Dennis mykey3 => one, two, three mykey4 = 4, 5, three, 6, 7, four, 8, 9, five
Thank you in advance