CPAN::Changes::Parser(3pm)

CPAN::Changes::Parser3pm

Parse a cpan changelog file

Usage

  my $parser = CPAN::Changes::Parser->new(
    version_like => qr/\{\{\$NEXT\}\}/,
    version_prefix => qr/=head\d\s+/,
  );
  my $changelog = $parser->parse_file('Changes', ':utf8');
  my $changelog = $parser->parse_string($content);

Overview

Parses a file or string into a CPAN::Changes object. Many forms of change log are accepted.

Attributes

version_like

A regular expression for a token that will be accepted in place of a version number. For example, this could be set to "qr/\{\{\$NEXT\}\}/" if the Dist::Zilla plugin [NextRelease] is managing the file.

version_prefix

A regular expression for a prefix that will be matched before a version number. "qr/=head\d\s+/" could be used if the change log is using Pod headings for the release headings.

Methods

parse_file

Parses a file into a CPAN::Changes object. Optionally accepts a string of layers to be used when reading the file.

parse_string

Parses a string into a CPAN::Changes object.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Authors

See CPAN::Changes for authors.

From perl-cpan-changes 0.500005-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.