in reply to In-place sort with order assignment
Out of curiosity, when the "fairly large hash (keys, no values)" is created, are the keys being created in the correct "sorted" order?
If the answer is yes, then I think that Tie::IxHash may be helpful in that will "preserve the order in which the hash elements were added", which eliminates the need to sort the keys after creating them.
If the answer is no, then the module suggestion above probably wouldn't be much help. Not sure what to suggest for this scenario.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: In-place sort with order assignment
by BrowserUk (Patriarch) on Sep 19, 2010 at 21:40 UTC |