I have a problem. I have a collection of hashes. The hashes should have a name associated to them so. The names are consisting of a alphabetic part and a numeric part for example they should have names like 'A1' or 'B2'. The various hashes in the hashcollection will vary at different time but there will allways be a so many hashes that they will be possible to print in a squere fashion like in this examples:
A1 A2
B1 B2

or

A1 A2 A3
B1 B2 B3

or

A1 A2
B1 B2
C1 C2

etc.

In the examples obove. Each name A1, B2 etc. will be a hash which should be printed out so The first example should for example when outprinted look something like:

#######################
A1................#A2................#
.bl=>0..........#.cc=>5...........#
.ff=>4..........#.dd=>4..........#
.gg=>3..........#.ee=>9..........#
#######################
B1................#B2................#
.og=>0.........#.oo=>5.........#
.wo=>4........#.pp=>4.........#
.ee=>3..........#.zz=>9..........#
#######################

Do you have any suggestions how I should do this in the best way? Which complex data stucture to use etc.?
Thank you for any help.

In reply to Hash printing problem 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.