in reply to How can I split a hash into other N hashes
should bemy $destKeyCount = keys %{$worker->{$numOfHashes}->{WORK}};
You're outputting case 1 twice. I see you included Data::Dumper; might have been helpful if you'd cross-checked with its output.my $destKeyCount = keys %{$worker->{$destKey}->{WORK}};
On a side note, line 78 is redundant with line 81 (but not vice versa).
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I split a hash into other N hashes
by ataX (Initiate) on May 13, 2014 at 16:51 UTC |