[Bps-public-commit] App-moduleswhere branch, master, updated. 877a15001d427645eb785eba002a47d8151dbfbe
? sunnavy
sunnavy at bestpractical.com
Thu Apr 28 06:24:36 EDT 2011
The branch, master has been updated
via 877a15001d427645eb785eba002a47d8151dbfbe (commit)
via ae0be4454a79f86b5d6dd71ea829bdc473152ba2 (commit)
via ea0640279ef7507cceed71aeddf6401ef5f83081 (commit)
from a43e3f76d6a31a515a0952dbf3a82306503f0b0b (commit)
Summary of changes:
Changes | 5 +++++
bin/mwhere | 2 +-
dist.ini | 2 +-
lib/App/moduleswhere.pm | 7 +++++++
4 files changed, 14 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit ea0640279ef7507cceed71aeddf6401ef5f83081
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Apr 28 17:22:11 2011 +0800
show error msg of require failure
diff --git a/bin/mwhere b/bin/mwhere
index 34cc092..a0f5efe 100755
--- a/bin/mwhere
+++ b/bin/mwhere
@@ -19,7 +19,7 @@ EOF
}
for my $mod (@ARGV) {
- eval "require $mod" or warn "failed to require '$mod'\n" and next;
+ eval "require $mod" or warn "failed to require '$mod': $@" and next;
my @parts = split /::/, $mod;
my $inc = join( '/', @parts ) . '.pm';
commit ae0be4454a79f86b5d6dd71ea829bdc473152ba2
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Apr 28 18:19:46 2011 +0800
doc about Module::Info
diff --git a/lib/App/moduleswhere.pm b/lib/App/moduleswhere.pm
index 81020ee..a2953e9 100644
--- a/lib/App/moduleswhere.pm
+++ b/lib/App/moduleswhere.pm
@@ -25,10 +25,17 @@ You may ask, why not using `perldoc -l`? well, if the module doesn't
have any pod( this happens occasionally but does happen ), `perldoc -l` will
fail, in this case, mwhere comes to rescue!
+Technically, C<mwhere> just "require" the modules first and then find the
+info in %INC, check out C<Module::Info> if you don't like the "require" way.
+
=head1 BUGS AND LIMITATIONS
No bugs have been reported.
+=head1 SEE ALSO
+
+C<Module::Info>
+
=head1 AUTHOR
sunnavy C<< sunnavy at bestpractical.com >>
commit 877a15001d427645eb785eba002a47d8151dbfbe
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Apr 28 18:22:20 2011 +0800
release 0.02
diff --git a/Changes b/Changes
index 89c006a..055f49d 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,11 @@ Revision history for App-moduleswhere
{{$NEXT}}
+0.02 2011-04-28 18:21:51 CST
+
+ note about Module::Info.
+ show require error if any.
+
0.01 2011-04-27 14:34:19 CST
Initial release.
diff --git a/dist.ini b/dist.ini
index 9e77e48..a05757a 100644
--- a/dist.ini
+++ b/dist.ini
@@ -1,5 +1,5 @@
name = App-moduleswhere
-version = 0.01
+version = 0.02
author = sunnavy <sunnavy at bestpractical.com>
license = Perl_5
copyright_holder = Best Practical Solutions
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list