Hello Friends!
I have been trying to print out a HoA. When I do so using the typical method of:
for $zz(keys %data) { print OUTPUT "@{ $data{$zz} }" }
I get all of the arrays printed out succesively. Each array is composed of several thousand data strings followed by a \n. From an Excel perspective, it would be the equivalent of 4 columns of several thousand rows (per array). What I am aiming to do is get these arrays printed out in succesive columns, so (again in Excel terms) it would be a total of 4 columns x 5 arrays =20 columns total. Anyway, I know that the best way to do this is to say  print "@a,@b,@c";so that they are all printed simultaniously. Hence, I have fished the keys of the array out (the name of the arrays themselves) using  my $scalar= join( ', ',keys %data); Therin lies my problem however. I have the names of the arrays in a scalar, but like calling a program in a different subdirectory, need to be able to pull out the names and figure out how to print the arrays themselves, rather than the names of the arrays. I hope I have elucidated my goals well. Thanks so much!!!
Bioinformatics

In reply to Custom printing of an HoA by bioinformatics

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.