Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 lurking in the Monastery: (15)
As of 2014-07-11 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (232 votes), past polls