develooper Front page | perl.beginners | Postings from August 2009

Re: Inverting a hash safely

Thread Previous | Thread Next
From:
Uri Guttman
Date:
August 3, 2009 15:51
Subject:
Re: Inverting a hash safely
Message ID:
87vdl4ikav.fsf@quad.sysarch.com
>>>>> "EA" == Ed Avis <eda@waniasset.com> writes:

  EA>     foreach my $k (sort keys %hash) {

why the sort?

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
--------- Free Perl Training --- http://perlhunter.com/college.html ---------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About