Dpkg::Email::AddressList.3perl - Man Page

manage email address lists

Description

It provides a class which is able to manage email address lists, as used in deb822(5) data.

Functions

$regex = PARSE_REGEX()

Returns the regex used to parse email address lists.

Matches on a single entire email address.

$regex = CHECK_REGEX()

Returns the regex used to validate email address lists.

Methods

$addrlist = Dpkg::Email::AddressList->new($string)

Create a new object that can hold an email address list.

@addrlist = $addrlist->addrlist()

Returns a list of Dpkg::Email::Address objects that art part of this email address list object.

$bool = $addrlist->parse($string)

Parses $string into the current object replacing the current address list.

Will die on parse errors.

$bool = $addrlist->contains($addr)

Checks whether the $addr Dpkg::Email::Address is present in the email address list.

$string = $addrlist->as_string()

Returns the email address list formatted as a string of email addresses separated by commas.

Changes

Version 0.xx

This is a private module.

Info

2026-01-23 1.23.5 libdpkg-perl