I figured there would be something on CPAN. I just want something quick that would have minimal impact on an exisiting application without adding another dependency.
I didn't even think about all the other uses the docs suggest. I find it odd that I too named it after a bucket. I had a hard time naming the sub. I didn't know a formal name for the problem and "buckets" just made the most sense.