Codex

Software::LicenseUtils

Section: User Contributed Perl Documentation (3pm)

Updated: 2014-09-27

Index?action=index Return to Main Contents


NAME

Software::LicenseUtils - little useful bits of code for licensey things

VERSION

version 0.103010

METHODS

guess_license_from_pod

Given text containing POD, like a .pm file, this method will attempt to guess at the license under which the code is available. This method will either a list of Software::License classes (or instances) or false.

Calling this method in scalar context is a fatal error.

guess_license_from_meta

Given the content of the META.(yml|json) file found in a CPAN distribution, this method makes a guess as to which licenses may apply to the distribution. It will return a list of zero or more Software::License instances or classes.

guess_license_from_meta_key

This method returns zero or more Software::License classes known to use as their META key. If is supplied, it specifies whether to treat as a v1 or v2 meta entry. Any value other than 1 or 2 will raise an exception.

new_from_short_name

Create a new Software::License object from the license specified with . Known short license names are , , and . If the short name is not know, this method will try to create a license object with and the specified short name (e.g. with .

AUTHOR

Ricardo Signes <[email protected]>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Ricardo Signes.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


Index

NAME

VERSION

METHODS

guess_license_from_pod

guess_license_from_meta

guess_license_from_meta_key

new_from_short_name

AUTHOR

COPYRIGHT AND LICENSE