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: 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. 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