Hi All,
Could any one help me in printing the hashes of hashes? the data sturcture is something like this.
$VAR1 = { 'LB2241-RCC' => { 'rs6557634' => { 'plex' => 'W30467', 'gt' => 'T', 'file' => ' file1.csv' }, 'rs1032807' => { 'plex' => 'W30569', 'gt' => 'G', 'file' => ' file1.csv' },
where LB2241-RCC is a sample, which can have around 60 -89 similar rs6557634 (called snp-ids) and each of them in turn have the the three keys, plex, gt, file. I would like to print them in this format:
W30467,LB2241-RCC,T,T,T,C,CA,GT,T,GA,C,A,G,CT,T,T,CA,AG,TC,G,GA,C,TC,C +T,AG,AG,C,GT,GA,G,GA,T W30469,LB2241-RCC,G,T,T,C,CA,GT,T,GA,C,A,G,CT,T,T,CA,AG,TC,G,GA,C,TC,C +T,AG,AG,C,GT,GA,G,GA,T
In simple words, I have to get all the snps-ids->gt foreach of the sample and their plex. The same sample could be seen with a different snp-ids and a different 'gt'. Any help in how to print them ? Thanks in advance, your help is much appreciated.

In reply to fetching from a hash by Anonymous Monk

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.