Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Array of Hashes (updated)

by haukex (Chancellor)
on Feb 07, 2019 at 13:15 UTC ( #1229546=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $hr1 = { foo=>'bar' };
    my $hr2 = { quz=>'baz' };
    ...
    push @data, %{$hr2};
    use Data::Dump;
    dd @data;  # ("foo", "bar", "quz", "baz")
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2019-10-15 21:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?