info > Dpkg::Changelog

Dpkg::Changelog(3perl)   libdpkg-perl   Dpkg::Changelog(3perl)

πŸ“› NAME

Dpkg::Changelog - base class to implement a changelog parser

πŸš€ Quick Reference

Use CaseCommandDescription
Create parser$c = Dpkg::Changelog->new()New changelog object
Parse file$c->load($filename)Parse a changelog file
Get all entries@entries = @{$c}Array of parsed entries
Filter by version$c->get_range({since => '2.0'})Entries after a version
Format as dpkg control$c->format_range('dpkg', {from => '1.0'})Retrieve structured data
Output to string$str = $c->output() or "$c"String of the whole changelog
Save to file$c->save($filename)Write changelog back

πŸ“– DESCRIPTION

Dpkg::Changelog is a class representing a changelog file as an array of changelog entries (Dpkg::Changelog::Entry). By deriving this class and implementing its parse method, you add the ability to fill this object with changelog entries.

πŸ› οΈ METHODS

🎯 RANGE SELECTION

A range selection is described by a hash reference where the allowed keys and values are described below.

πŸ“Œ Version‑based options

The following options take a version number as value.

βš™οΈ Non‑version options

The following options don't take version numbers as values:

πŸ“Š Examples

Some examples for the above options. Imagine an example changelog with entries for the versions 1.2, 1.3, 2.0, 2.1, 2.2, 3.0 and 3.1.

RangeIncluded entries
since => '2.0'3.1, 3.0, 2.2
until => '2.0'1.3, 1.2
from => '2.0'3.1, 3.0, 2.2, 2.1, 2.0
to => '2.0'2.0, 1.3, 1.2
count => 23.1, 3.0
count => -21.3, 1.2
count => 3, offset => 22.2, 2.1, 2.0
count => 2, offset => -32.0, 1.3
count => -2, offset => 33.0, 2.2
count => -2, offset => -32.2, 2.1

Any combination of one option of since and from and one of until and to returns the intersection of the two results with only one of the options specified.

πŸ”„ CHANGES

1.21.1                              2025-09-09              Dpkg::Changelog(3perl)

Dpkg::Changelog
πŸ“› NAME πŸš€ Quick Reference πŸ“– DESCRIPTION πŸ› οΈ METHODS 🎯 RANGE SELECTION
πŸ“Œ Version‑based options βš™οΈ Non‑version options πŸ“Š Examples
πŸ”„ CHANGES

Generated by phpman v4.9.25-3-gdbaf087 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-06 23:13 @216.73.217.93
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-pro / taotoken.net / www.chedong.com - original format

^_top_^