Module::cpmfile(3pm) User Contributed Perl Documentation Module::cpmfile(3pm)

# [NAME](#NAME)

Module::cpmfile - Parse cpmfile

# [SYNOPSIS](#SYNOPSIS)

```
  use Module::cpmfile;
  my $cpmfile = Module::cpmfile->load("cpm.yml");
  my $reqs = $cpmfile->effective_requirements(undef, ["runtime"], ["requires"]);
```

# [DESCRIPTION](#DESCRIPTION)

THIS IS EXPERIMENTAL.

cpmfile (usually saved as "cpm.yml") is yet another file format for describing module dependencies, and Module::cpmfile helps you parse it.

The JSON Schema for cpmfile is available at jsonschema.json &lt;https://github.com/skaji/cpmfile/blob/main/jsonschema.json&gt;.

cpmfile will be used mainly by App::cpm.

# [SEE ALSO](#SEE_ALSO)

cpanfile

Module::CPANfile

App::cpm

# [ARTIFACT ATTESTATIONS](#ARTIFACT_ATTESTATIONS)

GitHub Artifact Attestations are generated for release tarballs uploaded to CPAN. If you care about provenance for the uploaded tarballs, see:

&lt;https://github.com/skaji/cpmfile/attestations&gt;

# [COPYRIGHT AND LICENSE](#COPYRIGHT_AND_LICENSE)

Copyright 2021 Shoichi Kaji &lt;skaji@cpan.org&gt;

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2026-08-08 perl v5.44.0

---

Document: Module::cpmfile(3pm) from perl-module-cpmfile 1.0.0-r3 (Chainguard OS)
Source: https://github.com/skaji/cpmfile
