Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Converting an array of hashrefs into a hashref of arrays

by bowei_99 (Friar)
on Mar 28, 2006 at 20:56 UTC ( [id://539802]=note: print w/replies, xml ) Need Help??


in reply to Converting an array of hashrefs into a hashref of arrays

I think the module you may be referring to is Data::Dumper, although it tends to format it a little differently. You could have something like:

use Data::Dumper; ...your code here ... print Dumper($ref);
where $ref is a reference to your data structure, in this case, a hash of arrays.

It's included by default on at least perl 5.6 and above; maybe even earlier versions, so you shouldn't have to install it.

-- Burvil

Log In?
Username:
Password:

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

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

    No recent polls found