Software::License(3) User Contributed Perl Documentation Software::License(3)

# [SYNOPSIS](#SYNOPSIS)

```
  my $license = Software::License::Discordian->new({
    holder => 'Ricardo Signes',
  });
  print $output_fh $license->fulltext;
```

```
  my $license = $subclass->new(\%arg);
```

This method returns a new license object for the given license class. Valid arguments are:

"program" and "Program" arguments may be specified both, either one or none. Each argument, if not specified, is defaulted to another one, or to properly capitalized "this program", if both arguments are omitted.

These methods are attribute readers.

Name of software for using in the middle of a sentence.

The method returns value of "program" constructor argument (if it evaluates as true, i. e. defined, non-empty, non-zero), or value of "Program" constructor argument (if it is true), or "this program" as the last resort.

Name of software for using in the middle of a sentence.

The method returns value of "Program" constructor argument (if it is true), or value of "program" constructor argument (if it is true), or "This program" as the last resort.

This method returns the name of the license, suitable for shoving in the middle of a sentence, generally with a leading capitalized "The."

This method returns the URL at which a canonical text of the license can be found, if one is available. If possible, this will point at plain text, but it may point to an HTML resource.

This method returns a snippet of text, usually a few lines, indicating the copyright holder and year of copyright, as well as an indication of the license under which the software is distributed.

This method returns the full text of the license.

This method returns the complete text of the license, preceded by the copyright notice.

This method returns the version of the license. If the license is not versioned, this method will return false.

This method returns the string that should be used for this license in the CPAN META.yml file, according to the CPAN Meta spec v1, or undef if there is no known string to use.

This method may also be invoked as "meta\_yml\_name" for legacy reasons.

This method returns the string that should be used for this license in the CPAN META.json or META.yml file, according to the CPAN Meta spec v2, or undef if there is no known string to use. If this method does not exist, and "meta\_name" returns open\_source, restricted, unrestricted, or unknown, that value will be used.

This method should return the string with the spdx identifier as indicated by &lt;https://spdx.org/licenses/&gt;

# [LOOKING UP LICENSE CLASSES](#LOOKING_UP_LICENSE_CLASSES)

If you have an entry in a *META.yml* or *META.json* file, or similar metadata, and want to look up the Software::License class to use, there are useful tools in Software::LicenseUtils.

# [TODO](#TODO)

# [SEE ALSO](#SEE_ALSO)

The specific license:

Extra licenses are maintained on CPAN in separate modules.

The App::Software::License module comes with a script software-license &lt;https://metacpan.org/pod/distribution/App-Software-License/script/software-license&gt;, which provides a command-line interface to Software::License.

# [POD ERRORS](#POD_ERRORS)

Hey! **The above document had some coding errors, which are explained below:**

[Around line 17:](#Around)

Unknown directive: =method

[Around line 48:](#Around~2)

Unknown directive: =method

[Around line 50:](#Around~3)

Unknown directive: =method

[Around line 65:](#Around~4)

Unknown directive: =method

[Around line 77:](#Around~5)

Unknown directive: =method

[Around line 88:](#Around~6)

Unknown directive: =method

[Around line 93:](#Around~7)

Unknown directive: =method

[Around line 99:](#Around~8)

Unknown directive: =method

[Around line 109:](#Around~9)

Unknown directive: =method

[Around line 117:](#Around~10)

Unknown directive: =method

[Around line 129:](#Around~11)

Unknown directive: =method

[Around line 146:](#Around~12)

Unknown directive: =method

[Around line 154:](#Around~13)

Unknown directive: =method

[Around line 180:](#Around~14)

Unknown directive: =method

2026-10-25 perl v5.44.0

---

Document: Software::License(3pm) from perl-software-license 0.104007-r3 (Chainguard OS)
Source: https://github.com/Perl-Toolchain-Gang/Software-License
