in reply to Proof of concept: File::Index

This is indeed a common task, and it's nice that you're trying to build a generalized solution.

I had to solve this problem before, and I used the kind help of the Monks to compose a solution. You might find the following threads interesting:

In Section
Meditations