Skip Menu |

This queue is for tickets about the Module-Find CPAN distribution.

Report information
The Basics
Id: 119541
Status: rejected
Priority: 0/
Queue: Module-Find

People
Owner: crenz [...] cpan.org
Requestors: KES [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.13
Fixed in: (no value)



Subject: Not all modules are returned
I try to find all modules provided by application: perl -Ilocal/lib/perl5/ -Ilib -MModule::Find -e '$,="\n"; print findallmod ArtCoin' ArtCoin::Controller ArtCoin::Config ArtCoin::Schema ArtCoin::Validate ArtCoin::Helper ArtCoin::Schema::ResultSet ArtCoin::Schema::Result ArtCoin::Schema::ResultSet::User ArtCoin::Schema::Result::User ArtCoin::Controller::Example ArtCoin::Controller::Pay ArtCoin::Controller::User ArtCoin::Controller::Auth But expects it will return ArtCoin also. Because ArtCoin belongs to ArtCoin category too
Module::Find is designed to find modules in a certain directory, for scenarios where you don't know in advance which modules might be in that directory. I believe the usage scenario you outline would be counterintuitive for most users of Module::Find. They wouldn't expect Module::Find to look outside the directory specified. Also, since you know this module to be there, you can just 'use' it directly.
On Wed Dec 25 18:27:44 2019, CRENZ wrote: Show quoted text
> They wouldn't expect Module::Find to look outside the directory specified.
ArtCoin is inside @INC directory like ArtCoin::Config, ArtCoin::Schema etc.