raisputin has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash that looks like this:
username@domain->EMLIST->[emailaddress1,emailaddress2,emailaddress3] username@domain->COUNT->3 username24@domain->EMLIST->[ emailaddress1...emailaddress100 ] username24@domain->COUNT->100
I need to print it out to look something like
username24@domain, 100 ... username@domain, 3
I can print it with (readily available online of course)
I also understand that I will need to sort the hash by the 'count' but I am totally lost on how to do that to say the least...I am sure it is easier than my brain is letting it be...while ( my ($key, $value) = each(%HASH) ) { print "<td>$key</td><td>$HASH{$key}->{COUNT}</td><tr>\n"; }
I will keep messing around with it here and hppefully figure it out, but ... any help appreciated :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash help
by ikegami (Patriarch) on Nov 03, 2009 at 19:27 UTC | |
|
Re: Hash help
by roboticus (Chancellor) on Nov 03, 2009 at 19:32 UTC | |
|
Re: Hash help
by GrandFather (Saint) on Nov 05, 2009 at 05:57 UTC | |
|
Re: Hash help
by raisputin (Scribe) on Nov 03, 2009 at 20:06 UTC |