Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Get licence from module

by andreas1234567 (Vicar)
on Feb 03, 2011 at 14:12 UTC ( #885993=perlquestion: print w/ replies, xml ) Need Help??
andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:

Given a list of modules, how do I produce a list of licences used? Is there a module on cpan that will take me half-way or even to the finish? Pseudo-code:
while(<DATA>) { print $_ . " - " . get_licence($_); } __DATA__ DateTime JSON::Schema Parse::Dia::SQL
Where the expected output would be:
DateTime - The Artistic License 2.0 JSON::Schema - The MIT Licence Parse::Dia::SQL - GNU General Public License.
--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

Comment on Get licence from module
Select or Download Code
Re: Get licence from module
by toolic (Chancellor) on Feb 03, 2011 at 14:22 UTC
      Yes, that might work: Output:
      $ perl analyse-poc.pl List-MoreUtils-0.22.tar.gz : Software::License::Perl_5 Log-Dispatch-2.22.tar.gz : perl Mail-Sendmail-0.79.tar.gz : no license found
      Thanks!
      --
      No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://885993]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-18 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (125 votes), past polls