I am new to work hash tables in perl
I personally believe that this is clear enough. I also believe you may be new to Perl in general. More precisely, when I read both "Hash accessing issue while returning hash from sub routinue" and "how to get the hash values and keys in same sequence while getting hash from sub routinue" even before proceeding, I feel the need to clarify: you can't do that. Specifically, subs can only return lists thus you can (typically) return a list of key-value pairs which will be assigned to a hash, or a hashref, which seems to be your case.
Even with the code tags added, though, it's hard to understand what your actual problem may be: we have some code from you, and an excerpt from the file it's supposed to operate on, but no indication whatsoever of how does the former fail to work like you expected, nor -more simply- what you would expect. Your mention of "same sequence" suggests what AZed suspected too: anyway, I know I'm a bit late answering your question, but I see no intervention of yours in this thread beyond the root node, so chances are you may still want to clarify so as to help us to help you.
In reply to Re: Hash accessing issue while returning hash from sub routinue
by blazar
in thread Hash accessing issue while returning hash from sub routinue
by tilak_sai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |