in reply to Re: Sorting an array of strings by number
in thread Sorting an array of strings by number
Note that in your option 3 the unique keys of the hash will be likely to
clobber some data as the anonymonk specified that the
first value is price in his problem. Hashes are great for
many reasons but this example is easily and simply addressed
by a simple numerical sort so unless there is reason to
need to search the data by price, and a certainty of
unique pricing, I'll go with one of your first two options.
--
I'd like to be able to assign to an luser
|
---|
In Section
Seekers of Perl Wisdom