fatfinger - Catch typos in module names
version 0.000001
use strict; use warnings; use fatfinger;
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.
fatfinger
use
@INC
%INC
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"? ----------
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.
Thanks to Dave Rolsky, Greg Oschwald and Florian Ragwitz for helping me with the logic behind this module.
Olaf Alders <olaf@wundercounter.com>
This software is Copyright (c) 2015 by MaxMind, Inc..
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install fatfinger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm fatfinger
CPAN shell
perl -MCPAN -e shell install fatfinger
For more information on module installation, please visit the detailed CPAN module installation guide.