Package Info

perl-Module-ScanDeps


Recursively scan Perl code for dependencies


Development/Libraries/Perl

This module scans potential modules used by perl programs, and returns a hash reference; its keys are the module names as appears in '%INC' (e.g. 'Test/More.pm'); the values are hash references with this structure:

{
    file    => '/usr/local/lib/perl5/5.8.0/Test/More.pm',
    key     => 'Test/More.pm',
    type    => 'module',    # or 'autoload', 'data', 'shared'
    used_by => [ 'Test/Simple.pm', ... ],
    uses    => [ 'Test/Other.pm', ... ],
}

One function, 'scan_deps', is exported by default. Other functions such as ('scan_line', 'scan_chunk', 'add_deps', 'path_to_inc_name') are exported upon request.

Users of App::Packer may also use this module as the dependency-checking frontend, by tweaking their p2e.pl like below:

use Module::ScanDeps;
...
my $packer = App::Packer->new( frontend => 'Module::ScanDeps' );
...

Please see App::Packer::Frontend for detailed explanation on the structure returned by 'get_files'.


License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/Module-ScanDeps/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.24-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Module-ScanDeps
1.24-bp155.2.12 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Module-ScanDeps
1.24-bp154.1.47 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Module-ScanDeps
1.24-bp153.1.19 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Module-ScanDeps
1.24-bp152.3.23 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Module-ScanDeps
1.24-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • ppc64le
  • s390x
  • x86-64
  • perl-Module-ScanDeps
1.24-bp151.2.15 info GA Release 2019-05-18 15 SP1
  • AArch64
  • perl-Module-ScanDeps
1.24-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Module-ScanDeps