perl library to build link trees based on file metadata