File::Locate is a Perl module to search the (s)locate-database from Perl.
SYNOPSIS
use File::Locate;
print join "n", locate "mp3", "/usr/var/locatedb";
# or only test of something is in the database
if (locate("mp3", "/usr/var/locatedb")) {
print "yep...sort of mp3 there";
}
# do regex search
print join "n", locate "^/usr", -rex => 1, "/usr/var/locatedb";
ABSTRACT
Search the (s)locate-database from Perl
File::Locate provides the locate() function that scans the locate database for a given substring or POSIX regular expression. The module can handle both plain old locate databases as well as the more hip slocate format.
Product's homepage
Requirements:
· Perl