Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Array of Hashes in subroutines.

by toolic (Bishop)
on Sep 18, 2010 at 21:18 UTC ( [id://860657]=note: print w/replies, xml ) Need Help??


in reply to Array of Hashes in subroutines.

Here is another handy link: References quick reference

If all you're trying to do is display your data structure, Data::Dumper is a convenient way to do it:

use strict; use warnings; use Data::Dumper; my %hash1; $hash1{'fruit'} = ['apple', 'orange', 'plum']; $hash1{'vegetable'} = ['leek', 'carrot', 'peas']; print Dumper(\%hash1); __END__ $VAR1 = { 'fruit' => [ 'apple', 'orange', 'plum' ], 'vegetable' => [ 'leek', 'carrot', 'peas' ] };

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found