W3C::LogValidator::Basic

W3C::LogValidator::Basic is a W3C log validator. It can sort web server log entries by popularity (hits).
Download

W3C::LogValidator::Basic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Olivier Thereaux
  • Publisher web site:
  • http://search.cpan.org/~oliviert/W3C-LogValidator-1.06/lib/W3C/LogValidator/Basic.pm

W3C::LogValidator::Basic Tags


W3C::LogValidator::Basic Description

W3C::LogValidator::Basic is a W3C log validator. It can sort web server log entries by popularity (hits). W3C::LogValidator::Basic is a W3C log validator. It can sort web server log entries by popularity (hits).SYNOPSIS use W3C::LogValidator::Basic; my $b = new W3C::LogValidator::Basic; $b->uris('http://www.w3.org/Overview.html', 'http://www.yahoo.com/index.html'); my $result_string= $b->process_list();This module is part of the W3C::LogValidator suite, and simply gives back pages sorted by popularity. This is an example of simple module for LogValidator.APIConstructor$b = W3C::LogValidator::Basic->newConstructs a new W3C::LogValidator:HTMLBasic processor.You might pass it a configuration hash reference (see "config_module" in W3C::LogValidator and W3C::LogValidator::Config) Particularly relevant for this module are the "verbose", "MaxDocuments" and obviously "tmpfile" (see process_list). Pass the configuration hash ref as follows: $b = W3C::LogValidator::HTMLValidator->new(%config);General Methodsb->urisReturns a list of URIs to be processed (unless the configuration gives the location for the hash of URI/hits berkeley file, see process_list If an array is given as a parameter, also sets the list of URIs and returns it. Note: while this method is useful in other modules of W3C::LogValidator, this basic module is here to sort URIs extracted from Log Files by popularity, this method is hence rather useless for W3C::LogValidator::Basic.b->trim_urisGiven a list of URIs of documents to process, returns a subset of this list containing the URIs of documents the module supposedly can handle. For this module, the decision is made based on the setting for ExcludedAreas onlyb->process_listFormats the list of URIs sorted by popularity.Returns a result hash. Keys for this hash are: name (string): the name of the module, i.e "Basic" intro (string): introduction to the processing results thead (array): headers of the results table trows (array of arrays): rows of the results table outro (string): conclusion of the processing resultsRequirements:· Perl


W3C::LogValidator::Basic Related Software