|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: hashes with multiple keysby artist (Parson) |
| on Feb 27, 2009 at 21:24 UTC ( #747031=note: print w/ replies, xml ) | Need Help?? |
|
I guess you might need following output:
host1: vol1: 10g vol2: 20g vol3: 30g total:60h host2: vol4:30g vol5:20g vol2:20g total:70gYou should have data structure: Iterate each host from $HOSTS (in sorted order) and iterate for each volume and get the values from other hash. and total them for capacity. </code>
--Artist
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||