NAME
fatfinger - Catch typos in module names
VERSION
version 0.000001
SYNOPSIS
use strict;
use warnings;
use fatfinger;
DESCRIPTION
fatfinger
is a development tool which helps you spot typos in use
statements. It does this by adding an @INC
hook. If a module which you tried to use
cannot it be found, fatfinger
checks %INC
for similarly named modules. If this comes up empty fatfinger
will do some fuzzy matching on the files in your @INC
directories.
In order for fatfinger
to be effective, use
it as early as possible in your modules.
For example:
use strict;
use fatfinger;
use warningz;
When running this code, you should get the following error message:
----------
The module "warningz" could not be found. Perhaps you meant to "use warnings"?
----------
CAVEATS
This will add a (hopefully) small penalty to the run time of your code if a module cannot be found. Presently it seems to be fast enough for me, but it may not be fast enough for you.
ACKNOWLEDGEMENTS
Thanks to Dave Rolsky, Greg Oschwald and Florian Ragwitz for helping me with the logic behind this module.
AUTHOR
Olaf Alders <olaf@wundercounter.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by MaxMind, Inc..
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)