http://www.perlmonks.org?node_id=176336


in reply to I need speed

Using DB_File would definately be faster for index lookups, provided you used the btree interface.

By using the filename as the key, and the path as the value, you can quickly search for the location of your file.

One problem you may run into, though -- is that many files (under different paths) share identical names. See the section "Handling Duplicate Keys" in man DB_File.

--twerq