All,
It has been some time (almost a year) since I contributed
Tie::Hash::Sorted and have never received any feature requests or bug reports. This could be because no one is using it or because it does everything anyone wants. There are several minor POD nits that I have said I would fix if/when I posted a new release but that just hasn't happened. Here is a loose collection of ideas that I have thought about since releasing but don't want to add code bloat without good reason:
- A backward method which would change the direction the hash was being traversed in
- A forward method which would change the direction the hash was being traversed in
- A start_key method which would allow you to specify which key to start iterating at
- A end_key method which would allow you to specify which key to end iterating at
- A couple of peek methods that would allow you to take a look at what the next/previous key will be/were without actually changing the iterator
Of course all method names are subject to change
I am just not sure if my idea of usefulness
# effectively
for ( $start_key .. $end_key ) { }
is actually useful. So what do you think? If these are all garbage - are there any useful ideas you can think of that I should add or should I just leave it alone?