in reply to Re: search through hash for date in a range
in thread search through hash for date in a range
I assume your recommendation for Time::Piece is due to better performance?
Otherwise, not sure why I would change libraries from something I know works.
As to sorting the keys each time, I already reduced that workload to a cached array with the code:
if (!@vkeys) { @vkeys = sort keys %h; }
Only one sort is being done the first time the sub is run ...
|
|---|