CPAN::C...::Parser(3)
π NAME π
okay so bestie, we're in CPAN::C...::Parser(3) territory β straight from the User Contributed Perl Documentation β and the actual module is CPAN::Changes::Parser. It's the parser for CPAN changelogs, and it's lowkey iconic. No cap. π
β¨ SYNOPSIS β¨
Here's the vibe:
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);
π¦ DESCRIPTION π¦
It parses a file or a string into a CPAN::Changes object. Many forms of change log are accepted β yes, it's flexible like that. β¨
π 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. Obsessed with a configurable token, honestly. π
π· 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. Pod-heading changelogs get a little prefix glow-up. π«Ά
π₯ METHODS π₯
π« parse_file π«
Parses a file into a CPAN::Changes object. Optionally accepts a string of layers to be used when reading the file. A string of layers, bestie β that's the optional bit. π
β parse_string β
Parses a string into a CPAN::Changes object. Short and slay. π
π AUTHORS π
See CPAN::Changes for authors. Not me, I'm just the messenger. π
π COPYRIGHT AND LICENSE π
See CPAN::Changes for the copyright and license.
okay that's the whole page, bestie! π This was perl v5.42.0, dated 2025-07-25, and it belongs to CPAN::C...::Parser(3) β go forth and parse those changelogs. π¦π«Ά
π¦ where this page comes from
- fedora 43: perl-CPAN-Changes 0.500005-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms