NAME
CPAN::Nearest - find the nearest module to a given name.
SYNOPSIS
use CPAN::Nearest 'search';
my $module = search ('02package.details.txt', 'Lingua::Stop::Wars');
# Now $module = "Lingua::StopWords";
FUNCTIONS
search
my $close_name = search ($file, $module_name);
Search the package detail file $file
for a module named $module_name
and return the closest name. E.g. if you search for "Harry::Potter", the closest module is "Data::Lotter".
The file specified by the first argument, $file
in the example, is usually found at ~/.cpan/sources/modules/02packages.details.txt.gz on a Unix-like system. This may be specified as the file name. To retrieve the results faster, specify an uncompressed version of this file.
AUTHOR
Ben Bullock, <bkb@cpan.org>
COPYRIGHT & LICENCE
This package and associated files are copyright (C) 2012 Ben Bullock.
You can use, copy, modify and redistribute this package and associated files under the Perl Artistic Licence or the GNU General Public Licence.