Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: how to print out side of foreach loop($k1 $a{$k1}) ?

by vinoth.ree (Parson)
on May 29, 2013 at 06:08 UTC ( #1035783=note: print w/ replies, xml ) Need Help??


in reply to how to print out side of foreach loop($k1 $a{$k1}) ?

Hi virudinesh

I do not think i understand you requirement clearly.

As you have hash of hashes you need to use loops to iterate over each of them and print the values.

If you do not want to use loop means we have Data::Dumper module to print the data structure.


All is well


Comment on Re: how to print out side of foreach loop($k1 $a{$k1}) ?
Re^2: how to print out side of foreach loop($k1 $a{$k1}) ?
by kcott (Abbot) on May 29, 2013 at 06:15 UTC

    Yes, Data::Dumper is another potential candidate; however, the OP probably also wants to set $Data::Dumper::Sortkeys.

    -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1035783]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-09-18 01:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (103 votes), past polls