Subject: | Fix small spelling error in warning message |
Date: | Tue, 30 Mar 2010 09:21:12 +0200 |
To: | bug-B-Lint [...] rt.cpan.org |
From: | Bram Stappers <bram.stappers [...] tiobe.com> |
Description
B::Lint issues warnings such as
Nonexistant subroutine 'CanonicalPath::CatFile' called at Files.pm line 214.
but this should be
Nonexistent subroutine 'CanonicalPath::CatFile' called at Files.pm line 214.
Note the spelling of "Nonexistent".
Versions
B-Lint-1.11
perl v5.8.9 (but also perl v5.10.1)
Windows XP SP 2 (ActiveState Perl) (but also GNU/Linux
2.6.27.41-170.2.117.fc10.x86_64)
Patch
Index: B/Lint.pm
===================================================================
--- B/Lint.pm (revision 17483)
+++ B/Lint.pm (working copy)
@@ -626,7 +626,7 @@
no strict 'refs'; ## no critic strict
if ( not exists &$subname ) {
$subname =~ s/\Amain:://;
- warning q[Nonexistant subroutine '%s' called], $subname;
+ warning q[Nonexistent subroutine '%s' called], $subname;
}
elsif ( not defined &$subname ) {
$subname =~ s/\A\&?main:://;