WWW::CPANCPAN as a web service | |
Download |
WWW::CPAN Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Adriano Ferreira
- Publisher web site:
- http://search.cpan.org/~ferreira/
WWW::CPAN Tags
WWW::CPAN Description
CPAN as a web service Once upon a time, Schwern waved his hands and Graham implemented a mechanism to get the meta data from CPAN distributions at search.cpan.org. http://use.perl.org/~schwern/journal/35203 http://www.mail-archive.com/module-build@perl.org/msg01157.htmlWWW::CPAN is a Perl module that opportunistically implemented a client for this capability. One day, hopefully this may be useful.A further addition to WWW::CPAN API was the search method to fetch query data from search.cpan.org. This is done by issuing HTTP requests like http://search.cpan.org/search?query=Romanize&mode=all&format=xmlSYNOPSIS use WWW::CPAN; $meta = WWW::CPAN->fetch_distmeta('Error'); $cpan = WWW::CPAN->new; $meta = $cpan->fetch_distmeta('Error'); $meta = $cpan->fetch_distmeta({ dist => 'Error' }); $meta = $cpan->fetch_distmeta({ dist => 'Error-0.13', }); $meta = $cpan->fetch_distmeta({ dist => 'Error', version => '0.13' }); # same as above $meta = $cpan->fetch_distmeta({ dist => 'Error', author => 'GBARR', format => 'json' }); $result = $cpan->search('WWW-CPAN'); $result = $cpan->search({ query => 'WWW-CPAN', mode => 'dist' }); Requirements: · Perl
WWW::CPAN Related Software