>>>>> "Jennifer" == Jennifer Garner <[EMAIL PROTECTED]> writes:
Jennifer> map { print RESULT $_,":",$ips{$_},"\n" }
Jennifer> sort { $ips{$b} <=> $ips{$a} } keys %ips;
Map is generally used when you want to collect the results. Since
you aren't using the results, but merely using it for the sideeffect,
that would be better written as:
print RESULT $_,":",$ips{$_},"\n" foreach
sort { $ips{$b} <=> $ips{$a} } keys %ips;
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>