1Software::License(3) User Contributed Perl Documentation Software::License(3)
2
3
4
6 Software::License - packages that provide templated software licenses
7
9 version 0.103013
10
12 my $license = Software::License::Discordian->new({
13 holder => 'Ricardo Signes',
14 });
15
16 print $output_fh $license->fulltext;
17
19 new
20 my $license = $subclass->new(\%arg);
21
22 This method returns a new license object for the given license class.
23 Valid arguments are:
24
25 holder - the holder of the copyright; required
26 year - the year of copyright; defaults to current year
27
28 year
29 holder
30 These methods are attribute readers.
31
32 name
33 This method returns the name of the license, suitable for shoving in
34 the middle of a sentence, generally with a leading capitalized "The."
35
36 url
37 This method returns the URL at which a canonical text of the license
38 can be found, if one is available. If possible, this will point at
39 plain text, but it may point to an HTML resource.
40
41 notice
42 This method returns a snippet of text, usually a few lines, indicating
43 the copyright holder and year of copyright, as well as an indication of
44 the license under which the software is distributed.
45
46 license
47 This method returns the full text of the license.
48
49 fulltext
50 This method returns the complete text of the license, preceded by the
51 copyright notice.
52
53 version
54 This method returns the version of the license. If the license is not
55 versioned, this method will return false.
56
57 meta_name
58 This method returns the string that should be used for this license in
59 the CPAN META.yml file, according to the CPAN Meta spec v1, or undef if
60 there is no known string to use.
61
62 This method may also be invoked as "meta_yml_name" for legacy reasons.
63
64 meta2_name
65 This method returns the string that should be used for this license in
66 the CPAN META.json or META.yml file, according to the CPAN Meta spec
67 v2, or undef if there is no known string to use. If this method does
68 not exist, and "meta_name" returns open_source, restricted,
69 unrestricted, or unknown, that value will be used.
70
72 If you have an entry in a META.yml or META.json file, or similar
73 metadata, and want to look up the Software::License class to use, there
74 are useful tools in Software::LicenseUtils.
75
77 · register licenses with aliases to allow $registry->get('gpl', 2);
78
80 The specific license:
81
82 · Software::License::AGPL_3
83
84 · Software::License::Apache_1_1
85
86 · Software::License::Apache_2_0
87
88 · Software::License::Artistic_1_0
89
90 · Software::License::Artistic_2_0
91
92 · Software::License::BSD
93
94 · Software::License::CC0_1_0
95
96 · Software::License::Custom
97
98 · Software::License::EUPL_1_1
99
100 · Software::License::EUPL_1_2
101
102 · Software::License::FreeBSD
103
104 · Software::License::GFDL_1_2
105
106 · Software::License::GFDL_1_3
107
108 · Software::License::GPL_1
109
110 · Software::License::GPL_2
111
112 · Software::License::GPL_3
113
114 · Software::License::LGPL_2_1
115
116 · Software::License::LGPL_3_0
117
118 · Software::License::MIT
119
120 · Software::License::Mozilla_1_0
121
122 · Software::License::Mozilla_1_1
123
124 · Software::License::Mozilla_2_0
125
126 · Software::License::None
127
128 · Software::License::OpenSSL
129
130 · Software::License::Perl_5
131
132 · Software::License::PostgreSQL
133
134 · Software::License::QPL_1_0
135
136 · Software::License::SSLeay
137
138 · Software::License::Sun
139
140 · Software::License::Zlib
141
142 The App::Software::License module comes with a script software-license
143 <https://metacpan.org/pod/distribution/App-Software-
144 License/script/software-license>, which provides a command-line
145 interface to Software::License.
146
148 Ricardo Signes <rjbs@cpan.org>
149
151 · Alex Kapranoff <kappa@yandex.ru>
152
153 · Bernardo Rechea <brbpub@gmail.com>
154
155 · Bernhard Amann <bernhard@icsi.berkeley.edu>
156
157 · bowtie <bowtie@cpan.org>
158
159 · Brian Cassidy <bricas@cpan.org>
160
161 · Brian Phillips <bphillips@digitalriver.com>
162
163 · Craig Scrivner <scrivner@geology.cwu.edu>
164
165 · Curtis Brandt <curtis@cpan.org>
166
167 · Dave Rolsky <autarch@urth.org>
168
169 · David E. Wheeler <david@justatheory.com>
170
171 · David Golden <dagolden@cpan.org>
172
173 · Dominique Dumont <dod@debian.org>
174
175 · Dylan William Hardison <dylan@hardison.net>
176
177 · Flavio Poletti <flavio@polettix.it>
178
179 · Florian Ragwitz <rafl@debian.org>
180
181 · Graham Knop <haarg@haarg.org>
182
183 · Karen Etheridge <ether@cpan.org>
184
185 · Kenichi Ishigaki <ishigaki@cpan.org>
186
187 · Leon Timmermans <fawaka@gmail.com>
188
189 · magnolia <magnolia.k@me.com>
190
191 · mikegrb <mgreb@linode.com>
192
193 · Neil Bowers <neil@bowers.com>
194
195 · Olivier Mengué <dolmen@cpan.org>
196
197 · Shlomi Fish <shlomif@iglu.org.il>
198
199 · Syohei YOSHIDA <syohex@gmail.com>
200
201 · Wesley Schwengle <wesley@schwengle.net>
202
204 This software is copyright (c) 2017 by Ricardo Signes.
205
206 This is free software; you can redistribute it and/or modify it under
207 the same terms as the Perl 5 programming language system itself.
208
209
210
211perl v5.26.3 2017-10-27 Software::License(3)