Hi , Please find this piece of code as follows ::
# Get the list of cells, which has same frequency and SC Id # $t = $w{$_}{frequency} .':'. $w{$_}{sc}; push(@{$w{$t}{cells}}, $_);
. Here w is a hash variable . for each cell we will be retrieving its corresponding frequency and sc value in following format repectively :
$w{$_}{frequency} and $w{$_}{sc}
The above piece of code will collect all the cells which fall in that frequency and sc value .. SO when we give data dumper we will get as follows ::
'-1:130' => { 'cells' => [ 'SubNetwork=ONRM_ROOT_MO_R,SubNet +work=RNC12,MeContext=RNC12,ManagedElement=1,RncFunction=1,UtranCell=R +NC12-8-2' 'SubNetwork=ONRM_ROOT_MO_R,SubNetwork=RNC12,MeContext=RNC12,ManagedEle +ment=1,RncFunction=1,UtranCell=RNC12-8-8' ] },
Please let me know how to retrieve the values taht are in array .

In reply to Re^2: Usage of hashes with hashes when mulitple values are present by Bhagya
in thread Usage of hashes with hashes when mulitple values are present by Bhagya

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.