Subject: | hash ref only contains 'uses' for module itself |
Date: | Tue, 1 Apr 2008 06:20:02 +1000 |
To: | bug-Module-ScanDeps [...] rt.cpan.org |
From: | Danny Thomas <d.thomas [...] its.uq.edu.au> |
applies to current version (0.83) on v5.8.8 built for i386-freebsd-64int
bug or pilot error/misunderstanding ?
I know it doesn't claim to be perfect, but I'm using scan_deps to
process a
set of perl scripts and modules in a directory tree to identify which
modules
are being used (this is for setting up a CPAN micro-mirror for CPANPLUS
to work from).
for each file found I invoke
my $hr = scan_deps(
'files' => [ $fpath ],
'recurse' => 0,
'warn_missing' => 1,
);
and capture STDERR to identify uninstalled modules
my @INC includes /opt/SI/perl/site_perl to make my other pure-perl
modules accessible. If I put MySQL_Checks.pm under there, then
the 'MySQL_Checks.pm'' item in the $hr hash looks like the documentation
and all the other hash refs in $hr
{
file=>/opt/SI/perl/site_perl/MySQL_Checks.pm
key=>MySQL_Checks.pm
type=>module
uses=>[
Data/Dumper.pm
strict.pm
constant.pm
]
}
But if the module is moved elsewhere, I see just
{
uses=>[
Data/Dumper.pm
strict.pm
constant.pm
]
}
thoughts ?
Danny Thomas