Don't ask to ask, just ask | |
PerlMonks |
Re: How to acess Hash databy kcott (Archbishop) |
on Mar 28, 2014 at 20:08 UTC ( [id://1080148]=note: print w/replies, xml ) | Need Help?? |
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.
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 Section
Seekers of Perl Wisdom
|
|