Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Converting an array of hashrefs into a hashref of arrays

by santonegro (Scribe)
on Mar 28, 2006 at 17:39 UTC ( [id://539758]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [cams] users> SELECT *, DAY(stats_date) as stats_day FROM stream_updat
    +e_stats_daily WHERE MONTHNAME(stats_date)='March' AND YEAR(stats_date
    +)=2006 ORDER BY DAY(stats_date) LIMIT 3\G
    *************************** 1. row ***************************
    ...
    3 rows in set (0.01 sec)
    
    [cams] users>
    
  2. or download this
    @ar = (
     { stats_date => '2006-03-01', diary_entries => 2, msgs => 12, stats_d
    +ay => 1},
     { stats_date => '2006-03-02', diary_entries => 7, msgs => 4,. stats_d
    +ay => 2},
     { stats_date => '2006-03-03', diary_entries => 3, msgs => 2,. stats_d
    +ay => 3},
    );
    
  3. or download this
    { 
      diary_entries => [ 2,  7, 3],
      msgs          => [ 12, 4, 2]
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://539758]
Approved by Roy Johnson
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found