G'day milan.dalwadi,

Welcome to the monastery.

You show no declaraton of, nor assignment to, $start_end_brckt or $slack, yet you use these as hash keys. This could well be the reason for "only pathgroup name is there".

Overall, you appear to be using package global variables almost exclusively. This may well be causing you any number of additional problems.

I recommend you add these two lines to the top of your script and fix any issues Perl reports.

use strict; use warnings;

Those are documented in Pragmas. You should use them in all of your scripts.

I further recommend you use some logical indentation in your code. What you've presented here is very difficult to read and, as a result, highly error-prone. perlstyle can help you with this; also look at perltidy.

Those recommendations may resolve your problems. If you have further questions, please following the guidelines in "How do I post a question effectively?" (which will help us to help you).

-- Ken


In reply to Re: How to acess Hash data by kcott
in thread [untitled node, ID 1080084] by milan.dalwadi

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.