Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by vinoth.ree (Monsignor)
on May 29, 2013 at 06:08 UTC ( [id://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}) ?

Replies are listed 'Best First'.
Re^2: how to print out side of foreach loop($k1 $a{$k1}) ?
by kcott (Archbishop) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1035783]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found