Parse::...Package(3)
β¨ NAME β¨
Parse::CPAN::Packages::Package β okay so this is the Parse::...Package(3) page from User Contributed Perl Documentation, and yes bestie, that whole long thing is the package name. π
πΈ DESCRIPTION πΈ
This represents a CPAN Package. No cap. π«Ά
β οΈ important caveat:filenameandfile_contentwork only if a mirror directory was supplied for parsing, or the package file was situated inside acpanmirror structure. That's the whole condition, so don't forget it. π
π 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. It's giving little detective moment. ππ
π file_content
Tries to return the contents of the file returned by filename(). Yep, it follows filename's lead. π
π§ͺ subs
Experimental function. Tries to return the names of all subs in the package. Lab-goggles energy, bestie. π§β¨
π§ͺ has_matching_sub( $regex )
Experimental function. Tries to see if any sub name in the package matches the regex. It takes $regex and goes looking. π₯
that's the whole page, bestie. source/version: perl v5.42.0; date: 2015-04-14. mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Parse-CPAN-Packages 2.40-bp160.1.11 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms