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

Re^3: How can I split a hash into other N hashes

by GotToBTru (Prior)
on May 13, 2014 at 17:36 UTC ( [id://1085934]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How can I split a hash into other N hashes
in thread How can I split a hash into other N hashes

Array version, reprise:

my $keys = keys %{$hashref}; my @AoH; print "Original Hash Keys: $keys\n"; my $i=0; foreach my $key ( keys %{$hashref} ) { $AoH[$i++]{$key} = $hashref->{$key}; $i %= $numOfHashes; } print Dumper(@AoH);
1 Peter 4:10

Log In?
Username:
Password:

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

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

    No recent polls found