-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
52 lines (37 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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)