It's not clear what you want, but the following may give you some interesting ideas:

use strict; use warnings; my @ahoa=( {1=> ['A'=>1.1, 'B'=>10.1, 'C'=>100.1], 2=> ['A'=>2.1, 'B'=>20.1, 'C'=>200.1], 3=> ['A'=>3.1, 'B'=>30.1, 'C'=>300.1]}, {4=> ['A'=>4.1, 'B'=>40.1, 'C'=>400.1], 5=> ['A'=>5.1, 'B'=>50.1, 'C'=>500.1], 6=> ['A'=>6.1, 'B'=>60.1, 'C'=>600.1]}, {7=> ['A'=>7.1, 'B'=>70.1, 'C'=>700.1], 8=> ['A'=>8.1, 'B'=>80.1, 'C'=>800.1], 9=> ['A'=>9.1, 'B'=>90.1, 'C'=>900.1]}, ); print dumpRef(\@ahoa); sub dumpRef { my $ref = shift; if ('ARRAY' eq ref $ref) { my $str = ''; $str .= dumpRef ($_) for @$ref; return "$str\n"; } elsif ('HASH' eq ref $ref) { my $str = ''; $str .= " $_ => " . dumpRef ($ref->{$_}) for sort keys %$ref; return "$str\n"; } elsif (length ref $ref) { return 'Panic - got a ' . (ref $ref) . ' and can\'t deal with +it.'; } else { return " $ref"; } }

Prints:

1 => A 1.1 B 10.1 C 100.1 2 => A 2.1 B 20.1 C 200.1 3 => A 3.1 B 30.1 C 300.1 4 => A 4.1 B 40.1 C 400.1 5 => A 5.1 B 50.1 C 500.1 6 => A 6.1 B 60.1 C 600.1 7 => A 7.1 B 70.1 C 700.1 8 => A 8.1 B 80.1 C 800.1 9 => A 9.1 B 90.1 C 900.1

DWIM is Perl's answer to Gödel

In reply to Re: array of hash arrays, right? by GrandFather
in thread array of hash arrays, right? by tamaguchi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.