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

NAME

Logfile::EPrints::Mapping::arXiv - Parse Apache logs from an arXiv mirror

SYNOPSIS

  use Logfile::EPrints;

  my $parser = Logfile::EPrints::Parser->new(
        handler=>Logfile::EPrints::Mapping::arXiv->new(
          handler=>Logfile::EPrints::Repeated->new(
            handler=>Logfile::EPrints::Institution->new(
                  handler=>$my_handler,
          )),
        ),
  );
  open my $fh, "<", "access_log" or die $!;
  $parser->parse_fh($fh);
  close($fh);

  package MyHandler;

  sub new { ... }
  sub AUTOLOAD { ... }
  sub fulltext {
        my ($self,$hit) = @_;
        printf("%s from %s requested %s (%s)\n",
          $hit->hostname||$hit->address,
          $hit->institution||'Unknown',
          $hit->page,
          $hit->identifier,
        );
  }

DESCRIPTION

See Logfile::EPrints.

HANDLER CALLBACKS

abstract()
browse()
fulltext()
search()

SEE ALSO

AUTHOR

Timothy D Brody, <tdb01r@ecs.soton.ac.uk>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Timothy D Brody

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.