The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CPAN::Testers::ParseReport - parse reports to www.cpantesters.org from various sources

SYNOPSIS

The documentation in here is normally not needed because the code is meant to be run from a standalone program, ctgetreports.

  ctgetreports --q mod:Moose Devel-Events

DESCRIPTION

This is the core module for CPAN::Testers::ParseReport. If you're not looking to extend or alter the behaviour of this module, you probably want to look at ctgetreports instead.

OPTIONS

Are described in the ctgetreports manpage and are passed through to the functions unaltered.

FUNCTIONS

parse_distro($distro,$options)

reads the cpantesters HTML page or the YAML file for the distro and loops through the reports for the specified or most recent version of that distro found in these data.

parse_single_report($report,$dumpvars,$options)

mirrors and reads this report. $report is of the for

  { id => number }

$dumpvar is a hashreference that gets filled with data.

parse_report($target,$dumpvars,%Opt)

Reads one report. $target is the local filename to read. $dumpvars is a hashref which gets filled. %Opt are the options as described in the ctgetreports manpage.

Note: this parsing is a bit dirty but as it seems good enough I'm not inclined to change it. We parse HTML with a regexps only, no HTML parser working, only the entities are decoded.

solve

Feeds a couple of potentially interesting data to Statistics::Regression and sorts the result by R^2 descending. Do not confuse this with a prove, rather take it as a useful hint. It can save you minutes of staring at data and provide a quick overview where one should look closer. Displays the N top candidates, where N defaults to 3 and can be set with the $Opt{solvetop} variable.

AUTHOR

Andreas König

BUGS

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CPAN-Testers-ParseReport. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc CPAN::Testers::ParseReport

You can also look for information at:

ACKNOWLEDGEMENTS

Thanks to RJBS for module-starter.

COPYRIGHT & LICENSE

Copyright 2008 Andreas König.

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