NAME

CPAN::Dist::FromRepoName - Extract CPAN distribution name from a repos name

VERSION

This document describes version 0.001 of CPAN::Dist::FromRepoName (from Perl distribution CPAN-Info-FromRepoName), released on 2020-10-02.

FUNCTIONS

extract_cpan_dist_from_repo_name

Usage:

extract_cpan_dist_from_repo_name($repo_name) -> str

Extract CPAN distribution name from a repos name.

Examples:

  • Example #1 (perl-<dist>):

    extract_cpan_dist_from_repo_name("perl-Foo-Bar"); # -> "Foo-Bar"
  • Example #2 (unknown):

    extract_cpan_dist_from_repo_name("\@something"); # -> undef

This function is not exported by default, but exportable.

Arguments ('*' denotes required arguments):

  • $repo_name* => str

Return value: (str)

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/CPAN-Info-FromRepoName.

SOURCE

Source repository is at https://github.com/perlancar/perl-CPAN-Info-FromRepoName.

BUGS

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

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.

SEE ALSO

CPAN::Dist::FromURL

CPAN::Info::FromRepoName, the more generic module which is used by this module.

CPAN::Author::FromRepoName

CPAN::Module::FromRepoName

CPAN::Release::FromRepoName

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 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.