in reply to Re^3: how to avoid full scan in file.
in thread how to avoid full scan in file.
At this point in my process, I can not sort the $ idx column. This distribution I am using is similar to a distribution of playing cards. And I remove 1 item from each loop of each $ idx until it reaches 0.