Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

debian::copyright::stanza::orseparated(3pm) [debian man page]

Debian::Copyright::Stanza::OrSeparated(3pm)		User Contributed Perl Documentation	       Debian::Copyright::Stanza::OrSeparated(3pm)

NAME
Debian::Copyright::Stanza::OrSeparated - 'or' separated field abstraction VERSION
This document describes Debian::Copyright::Stanza::OrSeparated version 0.1 . SYNOPSIS
my $f = Debian::Copyright::Stanza::OrSeparated->new('Artistic'); $f->add('GPL-1+ or BSD'); print $f->as_string; # 'Artistic or GPL-1+ or BSD' print "$f"; # the same $f->sort; DESCRIPTION
Debian::Copyright::Stanza::OrSeparated abstracts handling of the License fields in Files blocks, which are lists separated by 'or'. CONSTRUCTOR
new (initial values) The initial values list is parsed and may contain strings that are in fact 'or'-separated lists. These are split appropriately using Text::ParseWords' "quotewords" routine. METHODS
as_string Returns text representation of the list. A simple join of the elements by " or ". The same function is used for overloading the stringification operation. equals Natural implementation of the equality function. add @items Adds the given items to the list. Items that are already present are not added, keeping the list unique. sort A handy method for sorting the list. perl v5.12.4 2011-08-27 Debian::Copyright::Stanza::OrSeparated(3pm)

Check Out this Related Man Page

Debian::Copyright::Stanza::License(3pm) 		User Contributed Perl Documentation		   Debian::Copyright::Stanza::License(3pm)

NAME
Debian::Copyright::Stanza::License - License stanza of Debian copyright file VERSION
This document describes Debian::Copyright::Stanza::License version 0.1 . SYNOPSIS
my $copy = Debian::Copyright::Stanza::License->new(\%data); print $copy; # auto-stringification DESCRIPTION
Debian::Copyright::Stanza::License can be used for representation and manipulation of a "License:" stanza of Debian copyright files in an object-oriented way. Converts itself to a textual representation in string context. FIELDS
The supported fields for License stanzas are listed below. Note that real copyright fields may contain dashes in their names. These are replaced with underscores. License CONSTRUCTOR
new new( { field => value, ... } ) Creates a new Debian::Copyright::Stanza::License object and optionally initialises it with the supplied data. SEE ALSO
Debian::Copyright::Stanza::License inherits most of its functionality from Debian::Copyright::Stanza COPYRIGHT &; LICENSE Copyright (C) 2011 Nicholas Bamber nicholas@periapt.co.uk This module is substantially based upon Debian::Control::Stanza::Source. Copyright (C) 2009 Damyan Ivanov dmn@debian.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. perl v5.12.4 2011-08-27 Debian::Copyright::Stanza::License(3pm)
Man Page