The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Parse::CPAN::Ratings - Parse CPAN ratings

SYNOPSIS

  my $ratings
      = Parse::CPAN::Ratings->new( filename => 't/all_ratings_100.csv' );

  my $rating = $ratings->rating('Archive-Zip');
  print $rating->distribution . "\n"; # Archive-Zip
  print $rating->rating . "\n";       # 3.8
  print $rating->review_count . "\n"; # 6

  my @all_ratings = $ratings->ratings;

DESCRIPTION

CPAN ratings is a web site where programmers can rate CPAN modules:

  http://cpanratings.perl.org/
  

It provides a file containing the average ratings at:

  http://cpanratings.perl.org/csv/all_ratings.csv

This module provides a simple interface to that file.

METHODS

rating

Returns a Parse::CPAN::Ratings::Rating object representing the distribution:

  my $rating = $ratings->rating('Archive-Zip');
  print $rating->distribution . "\n"; # Archive-Zip
  print $rating->rating . "\n";       # 3.8
  print $rating->review_count . "\n"; # 6

ratings

Returns a list of all Parse::CPAN::Ratings::Rating objects.

  my @all_ratings = $ratings->ratings;

SEE ALSO

Parse::CPAN::Ratings::Rating.

AUTHOR

Leon Brocard <acme@astray.com>.

COPYRIGHT

Copyright (C) 2009, Leon Brocard

LICENSE

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.