---
name: "Parse::CPAN::Packages::Distribution"
section: "3pm"
platform: "linux"
package: "libparse-cpan-packages-perl"
version: "2.40-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Parse::CPAN::Packages::Distribution"
---

# Parse::CPAN::Packages::Distribution(3pm)

represents a CPAN distribution

## NAME

Parse::CPAN::Packages::Distribution - represents a CPAN distribution

## DESCRIPTION

Represents a CPAN distribution. Note: 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.

## METHODS

### contains

Returns the packages in the distribution.

### add\_package

Adds a package to the distribution.

### list\_files

Tries to list all files in the distribution.

### get\_file\_from\_tarball( $filename )

Tries to retrieve the contents of a file from the distribution.
