Debian::Control::Stanza::CommaSeparated(3pm) | User Contributed Perl Documentation | Debian::Control::Stanza::CommaSeparated(3pm) |
Debian::Control::Stanza::CommaSeparated - comma separated debian/control field abstraction
my $f = Debian::Control::Stanza::CommaSeparated->new( 'Joe M <joem@there.not>'); $f->add('"Smith, Agent" <asmith@hasyou.not>, Joe M <joem@there.not>'); print $f->as_string; # 'Joe M <joem@there.not>, "Smith, Agent" <asmith@hasyou.not>' print "$f"; # the same $f->sort;
Debian::Control::Stanza::CommaSeparated abstracts handling of comma-separated list of values, often found in debian/control file fields like Uploaders. Note that the various dependency fields in debian/control also use comma-separated values, but the Debian::Dependencies class is more suitable for these as it is for example also capable of finding overlapping dependency declarations.
The same function is used for overloading the stringification operation.
2019-02-28 | perl v5.28.1 |