logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Parse::CPAN::Packages::Package - represents a CPAN package

Description

       Represents a CPAN Package. Note: The functions filename and file_content work only if a mirror directory
       was supplied for parsing or the package file was situated inside a cpan mirror structure.

Methods

filename
       Tries to guess the name of the file containing this package by looking through the files contained in the
       distribution it belongs to.

   file_content
       Tries to return the contents of the file returned by filename().

   subs
       Experimental function. Tries to return the names of all subs in the package.

   has_matching_sub($regex)
       Experimental function. Tries to see if any sub name in the package matches the regex.

perl v5.34.0                                       2022-06-16                Parse::CPAN::Packages::Package(3pm)

Name

       Parse::CPAN::Packages::Package - represents a CPAN package

See Also