.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "Dpkg::Email::Address 3perl" .TH Dpkg::Email::Address 3perl 2026-01-23 1.23.5-dirty libdpkg-perl .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Dpkg::Email::Address \- manage an email address .SH DESCRIPTION .IX Header "DESCRIPTION" It provides a class which is able to manage an email address, as used in \fBdeb822\fR\|(5) data. .SH FUNCTIONS .IX Header "FUNCTIONS" .ie n .IP "$regex = \fBREGEX()\fR" 4 .el .IP "\f(CW$regex\fR = \fBREGEX()\fR" 4 .IX Item "$regex = REGEX()" Returns the regex used to parse and validate an email address. .Sp It matches two parts, the name and the email. .SH METHODS .IX Header "METHODS" .ie n .IP "$addr = Dpkg::Email::Address\->new($string)" 4 .el .IP "\f(CW$addr\fR = Dpkg::Email::Address\->new($string)" 4 .IX Item "$addr = Dpkg::Email::Address->new($string)" Create a new object that can hold an email address. .ie n .IP "$name = $addr\->name([$name])" 4 .el .IP "\f(CW$name\fR = \f(CW$addr\fR\->name([$name])" 4 .IX Item "$name = $addr->name([$name])" Get and optionally set the email address name. .Sp Returns the current or new email name. .ie n .IP "$email = $addr\->email([$email])" 4 .el .IP "\f(CW$email\fR = \f(CW$addr\fR\->email([$email])" 4 .IX Item "$email = $addr->email([$email])" Get and optionally set the email address email. .Sp Returns the current or new email. .ie n .IP "$bool = $addr\->parse($string)" 4 .el .IP "\f(CW$bool\fR = \f(CW$addr\fR\->parse($string)" 4 .IX Item "$bool = $addr->parse($string)" Parses \f(CW$string\fR into the current object replacing the current address. .Sp Will die on parse errors. .ie n .IP "$string = $addr\->\fBas_string()\fR" 4 .el .IP "\f(CW$string\fR = \f(CW$addr\fR\->\fBas_string()\fR" 4 .IX Item "$string = $addr->as_string()" Returns the email address formatted as a string. .ie n .IP "$hashref = $addr\->\fBas_struct()\fR" 4 .el .IP "\f(CW$hashref\fR = \f(CW$addr\fR\->\fBas_struct()\fR" 4 .IX Item "$hashref = $addr->as_struct()" Returns the email address in a hashref with name and email keys. .SH CHANGES .IX Header "CHANGES" .SS "Version 0.xx" .IX Subsection "Version 0.xx" This is a private module.