The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::ListRevDeps - List reverse dependencies of a Perl module

VERSION

This document describes version 0.13 of App::ListRevDeps (from Perl distribution App-ListRevDeps), released on 2015-08-17.

SYNOPSIS

 # Use via list-rev-deps CLI script

DESCRIPTION

Currently uses MetaCPAN API and also scrapes the MetaCPAN website and by default caches results for 24 hours.

FUNCTIONS

list_rev_deps(%args) -> [status, msg, result, meta]

{en_US List reverse dependencies of a Perl module}.

Arguments ('*' denotes required arguments):

  • cache => bool (default: 1)

    {en_US Whether to cache API results for some time, for performance}.

  • exclude_re => str

    {en_US Specify dist pattern to exclude}.

  • level => int (default: 1)

    {en_US Specify how many levels up to check (-1 means unlimited)}.

  • module* => array

    {en_US Perl module(s) to check}.

  • raw => bool (default: 0)

    {en_US Return raw result}.

Returns an enveloped result (an array).

First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.

Return value: (any)

ENVIRONMENT

  • LOG_API_RESPONSE (bool)

    If enabled, will log raw API response (at trace level).

SEE ALSO

App::lcpan indexes CPAN Meta information from releases in your local CPAN mirror, and allows you to query dependencies and reverse dependencies information from the index.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-ListRevDeps.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-ListRevDeps.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-ListRevDeps

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.