Parse::...ribution(3)

πŸ’– NAME πŸ’–

Parse::CPAN::Packages::Distribution β€” that's the module, bestie. The page header vibes are Parse::...ribution(3), and it's part of the User Contributed Perl Documentation. Short NAME section, lowkey iconic.

✨ DESCRIPTION ✨

Okay so Parse::CPAN::Packages::Distribution literally represents a CPAN distribution. No cap.

Important caveat, bestie: the functions list_files and get_file_from_tarball 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 vibe check β€” if neither thing happened, those two functions are not gonna work. 😭

πŸŽ€ METHODS πŸŽ€

These are the methods, bestie β€” the little functions this distribution page gives you. Let's go. 🫢

πŸ’… contains

contains returns the packages in the distribution. That's it. Iconic, brief, slay.

πŸ¦‹ add_package

add_package adds a package to the distribution. Periodt. πŸ’–

🌸 list_files

list_files tries to list all files in the distribution. Note the "tries" energy β€” and remember the mirror-directory caveat from DESCRIPTION, because that's the vibe check for this one too. ✨

🧚 get_file_from_tarball( $filename )

get_file_from_tarball( $filename ) tries to retrieve the contents of a file from the distribution. Same "tries" energy, same mirror caveat from DESCRIPTION. Don't forget it, bestie. πŸ’œ


Okay that's the whole page! Cute sign-off: this is Parse::...ribution(3) from perl v5.42.0, dated 2015-04-14. Bye bestie, go be the main character of CPAN parsing πŸ’…βœ¨

πŸ“¦ where this page comes from