Subject: | Docs have rule 3 backwards. |
The documentation has rule #3 backwards. In case of ambiguity, File.pm
will be checked before File. This is Good if you consider
Module::Load's primary use case to be loading modules rather than files
in @INC.
Doc patch attached.
Subject: | 0001-The-docs-got-it-backwards-about-File-vs-File.pm-whic.patch |
From d81c7d8f8e70523ff084ce6dfbf3561125661be5 Mon Sep 17 00:00:00 2001
From: Michael G. Schwern <schwern@pobox.com>
Date: Mon, 1 Mar 2010 21:18:31 -0800
Subject: [PATCH] The docs got it backwards about File vs File.pm, which is a good thing.
---
lib/Module/Load.pm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/Module/Load.pm b/lib/Module/Load.pm
index 08f64b2..8dd0981 100644
--- a/lib/Module/Load.pm
+++ b/lib/Module/Load.pm
@@ -141,9 +141,9 @@ If the argument matches only C<[\w:']>, it must be a module
=item *
If the argument matches only C<\w>, it could either be a module or a
-file. We will try to find C<file> first in C<@INC> and if that fails,
-we will try to find C<file.pm> in @INC.
-If both fail, we die with the respective error messages.
+file. We will try to find C<file.pm> first in C<@INC> and if that
+fails, we will try to find C<file> in @INC. If both fail, we die with
+the respective error messages.
=back
--
1.7.0